From 420ccdd5a0dbf0517a93d7e8e5246b02e8611fcb Mon Sep 17 00:00:00 2001 From: EnumDev Date: Thu, 18 Sep 2025 10:46:43 +0300 Subject: [PATCH] Update package version to 1.1.43 --- check-version.sh | 15 +++++++++++++++ pkg.info | 4 ++-- source.sh | 10 ++++++++-- 3 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 check-version.sh diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..7bfa0dc --- /dev/null +++ b/check-version.sh @@ -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" diff --git a/pkg.info b/pkg.info index 243b619..fb04bd0 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,10 @@ name: libxslt description: XML stylesheet transformation library -version: 1.1.39 +version: 1.1.43 url: https://gitlab.gnome.org/GNOME/libxslt/ license: MIT architecture: any depends: ["bash","glibc","libgcrypt","libxml2","xz-utils"] optional_depends: ["python3"] -make_depends: ["python3"] +make_depends: ["python3","docbook-xml"] type: source diff --git a/source.sh b/source.sh index da86092..61e9bab 100644 --- a/source.sh +++ b/source.sh @@ -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 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##*/}" # The prepare function is executed in the root of the temp directory @@ -10,12 +10,17 @@ FILENAME="${DOWNLOAD##*/}" prepare() { wget "$DOWNLOAD" 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 # This function is used to compile the source code build() { ./configure --prefix=/usr --disable-static + # prevent excessive overlinking due to libtool + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make } @@ -30,5 +35,6 @@ check() { package() { 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 }