75 lines
1.8 KiB
Bash
75 lines
1.8 KiB
Bash
#!/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)
|
|
pkgname=libxslt
|
|
pkgver=1.1.38
|
|
pkgrel=01
|
|
pkgdesc="XML stylesheet transformation library"
|
|
url="https://gitlab.gnome.org/GNOME/libxslt/-/wikis/home"
|
|
depends=(libxml2 libgcrypt xz)
|
|
makedepends=(git python)
|
|
checkdepends=(docbook-xml)
|
|
optdepends=('python: Python bindings')
|
|
provides=(lib{,e}xslt.so)
|
|
#options=(debug) ## uncomment this to have the debug pkg produced
|
|
_commit=b9196c0b357a903ad0a41cb4acce62cc1b0f2057 # tags/v1.1.38^0
|
|
source=("git+https://gitlab.gnome.org/GNOME/libxslt.git#commit=$_commit")
|
|
|
|
pkgver() {
|
|
cd libxslt
|
|
git describe --tags | sed 's/-rc/rc/;s/^v//;s/[^-]*-g/r&/;s/-/+/g'
|
|
}
|
|
|
|
prepare() {
|
|
cd libxslt
|
|
|
|
NOCONFIGURE=1 ./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
cd libxslt
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var \
|
|
--with-python=/usr/bin/python \
|
|
--disable-static
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd libxslt
|
|
make check
|
|
}
|
|
|
|
#package_libxslt() {
|
|
package() {
|
|
cd libxslt
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
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"
|
|
}
|
|
|
|
#package_libxslt-docs() {
|
|
# pkgdesc+=" (documentation)"
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(custom:MIT)
|
|
|
|
sha256sums=(SKIP)
|
|
|
|
## 216b90d3d6ba5a042a4a0686963622dc325d290a2c865c86b32a4fb9b53726b7 libxslt-1.1.38-01-x86_64.pkg.tar.lz
|