Update package version to 1.1.43
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Gitlab repository
|
||||||
|
REPO="GNOME/libxslt"
|
||||||
|
|
||||||
|
# Replace slash with URL encoded representation
|
||||||
|
REPO=$(echo "$REPO" | sed 's|/|%2F|g')
|
||||||
|
|
||||||
|
# Get tag name using Gitlab Rest API
|
||||||
|
TAG_NAME=$(curl -s -L https://gitlab.gnome.org/api/v4/projects/"$REPO"/releases/permalink/latest | jq -r '.tag_name')
|
||||||
|
|
||||||
|
# Trim 'v' character in TAG_NAME variable
|
||||||
|
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
name: libxslt
|
name: libxslt
|
||||||
description: XML stylesheet transformation library
|
description: XML stylesheet transformation library
|
||||||
version: 1.1.39
|
version: 1.1.43
|
||||||
url: https://gitlab.gnome.org/GNOME/libxslt/
|
url: https://gitlab.gnome.org/GNOME/libxslt/
|
||||||
license: MIT
|
license: MIT
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["bash","glibc","libgcrypt","libxml2","xz-utils"]
|
depends: ["bash","glibc","libgcrypt","libxml2","xz-utils"]
|
||||||
optional_depends: ["python3"]
|
optional_depends: ["python3"]
|
||||||
make_depends: ["python3"]
|
make_depends: ["python3","docbook-xml"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
DOWNLOAD="https://download.gnome.org/sources/libxslt/${BPM_PKG_VERSION%.*}/libxslt-${BPM_PKG_VERSION}.tar.xz"
|
DOWNLOAD="https://gitlab.gnome.org/GNOME/libxslt/-/archive/v${BPM_PKG_VERSION}/libxslt-v${BPM_PKG_VERSION}.tar.gz"
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
FILENAME="${DOWNLOAD##*/}"
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
# The prepare function is executed in the root of the temp directory
|
||||||
@@ -10,12 +10,17 @@ FILENAME="${DOWNLOAD##*/}"
|
|||||||
prepare() {
|
prepare() {
|
||||||
wget "$DOWNLOAD"
|
wget "$DOWNLOAD"
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
||||||
|
|
||||||
|
cd "$BPM_SOURCE"
|
||||||
|
NOCONFIGURE=1 ./autogen.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
./configure --prefix=/usr --disable-static
|
./configure --prefix=/usr --disable-static
|
||||||
|
# prevent excessive overlinking due to libtool
|
||||||
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,5 +35,6 @@ check() {
|
|||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
|
||||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/libxslt/COPYING
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/Copyright "$BPM_OUTPUT"/usr/share/licenses/libxslt/Copyright
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user