jobextra/libxslt/PKGBUILD-arch

66 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-03-20 13:34:07 +01:00
# Contributor: Eric Belanger <eric@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>
pkgname=libxslt
2022-08-18 13:28:53 +02:00
pkgver=1.1.36
2022-03-20 13:34:07 +01:00
pkgrel=1
pkgdesc="XML stylesheet transformation library"
url="https://gitlab.gnome.org/GNOME/libxslt/-/wikis"
arch=(x86_64)
2022-08-18 13:28:53 +02:00
license=(custom:MIT)
depends=(
libgcrypt
libxml2
xz
)
makedepends=(
git
python
)
checkdepends=(
docbook-xml
)
2022-03-20 13:34:07 +01:00
optdepends=('python: Python bindings')
provides=(lib{,e}xslt.so)
2022-08-18 13:28:53 +02:00
options=(debug)
_commit=bcd17763a9f371ec5c9bdce0ffa2f2eb3ef74c43 # tags/v1.1.36^0
2022-03-20 13:34:07 +01:00
source=("git+https://gitlab.gnome.org/GNOME/libxslt.git#commit=$_commit"
0001-Make-generate-id-deterministic.patch)
sha256sums=('SKIP'
2022-08-18 13:28:53 +02:00
'e83c20f9a4f0c95716410c127ad10d6cde814c25d183de0d319f5dda529b7a6e')
2022-03-20 13:34:07 +01:00
pkgver() {
cd libxslt
git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd libxslt
# Make xsltproc output reproducible for packages which use it to generate documentation
git apply -3 ../0001-Make-generate-id-deterministic.patch
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd libxslt
2022-08-18 13:28:53 +02:00
./configure --prefix=/usr \
--disable-static
2022-03-20 13:34:07 +01:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
check() {
cd libxslt
make check
}
package() {
cd libxslt
make DESTDIR="$pkgdir" install
2022-08-18 13:28:53 +02:00
install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 Copyright
2022-03-20 13:34:07 +01:00
}
2022-08-18 13:28:53 +02:00
# vim:set sw=2 sts=-1 et: