jobextra/libxslt/PKGBUILD

82 lines
2.1 KiB
Bash
Raw Normal View History

2022-03-20 13:34:07 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
#pkgbase=libxslt
#pkgname=(libxslt libxslt-docs)
2022-03-20 13:34:07 +01:00
pkgname=libxslt
2022-08-29 21:42:04 +02:00
pkgver=1.1.37
2023-04-30 04:16:33 +02:00
pkgrel=03
2022-03-20 13:34:07 +01:00
pkgdesc="XML stylesheet transformation library"
2022-08-29 21:42:04 +02:00
url="https://gitlab.gnome.org/GNOME/libxslt/-/wikis/home"
depends=(libxml2 libgcrypt xz)
2022-03-20 13:34:07 +01:00
makedepends=(git python)
checkdepends=(docbook-xml)
optdepends=('python: Python bindings')
provides=(lib{,e}xslt.so)
2022-08-18 13:28:53 +02:00
#options=(debug) ## uncomment this to have the debug pkg produced
2022-08-29 21:42:04 +02:00
_commit=5eca7fb65b7337409a02f9f94fde608edf7d1b0a # tags/v1.1.37^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)
pkgver() {
cd libxslt
git describe --tags | sed 's/-rc/rc/;s/^v//;s/[^-]*-g/r&/;s/-/+/g'
2022-03-20 13:34:07 +01:00
}
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-29 21:42:04 +02:00
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
2022-08-29 21:42:04 +02:00
--with-python=/usr/bin/python \
--disable-static
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
2022-03-20 13:34:07 +01:00
make
}
check() {
cd libxslt
make check
}
#package_libxslt() {
2022-03-20 13:34:07 +01:00
package() {
cd libxslt
make DESTDIR="$pkgdir" install
2022-08-29 21:42:04 +02:00
mkdir -p ../doc/usr/share
mv "$pkgdir"/usr/share/{doc,gtk-doc} -t ../doc/usr/share
install -Dm644 Copyright -t "$pkgdir/usr/share/licenses/$pkgname"
2022-03-20 13:34:07 +01:00
}
#package_libxslt-docs() {
# pkgdesc+=" (documentation)"
2023-04-30 04:16:33 +02:00
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
2022-03-20 13:34:07 +01:00
2022-08-18 13:28:53 +02:00
license=(custom:MIT)
2022-03-20 13:34:07 +01:00
2022-08-18 13:28:53 +02:00
sha256sums=(SKIP
2022-08-29 21:42:04 +02:00
605e0a0b2ca385a90226bc5b141d3f6bfeade13e43ab39f8dea863505d7cbf18) # 0001-Make-generate-id-deterministic.patch
2023-04-30 04:16:33 +02:00
## e45a83746ecb19238005bc31c14a5367ada4d350e7948749ef4e50781362f974 libxslt-1.1.37-03-x86_64.pkg.tar.lz