diff --git a/pkg.info b/pkg.info index fb04bd0..f57441d 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,24 @@ name: libxslt description: XML stylesheet transformation library -version: 1.1.43 +version: 1.1.45 +revision: 1 url: https://gitlab.gnome.org/GNOME/libxslt/ license: MIT architecture: any -depends: ["bash","glibc","libgcrypt","libxml2","xz-utils"] -optional_depends: ["python3"] -make_depends: ["python3","docbook-xml"] type: source +depends: + - bash + - glibc + - libgcrypt + - libxml2 + - xz-utils +optional_depends: + - python3 +make_depends: + - python3 + - docbook-xml +downloads: + - url: https://download.gnome.org/sources/libxslt/${BPM_PKG_VERSION%.*}/libxslt-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 9acfe68419c4d06a45c550321b3212762d92f41465062ca4ea19e632ee5d216e diff --git a/source.sh b/source.sh index 61e9bab..858c6e6 100644 --- a/source.sh +++ b/source.sh @@ -2,25 +2,14 @@ # 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://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 -# This function is used for downloading files and putting them into the correct location -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 }