compat-32/libxslt-32/Pkgfile
2018-07-06 22:09:49 +10:00

37 lines
808 B
Plaintext

# Description: XSL Transformations library
# URL: http://xmlsoft.org/XSLT/
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
# Depends on: libxml2-32 libxslt
name=libxslt-32
version=1.1.30
release=1
source=(http://xmlsoft.org/sources/libxslt-$version.tar.gz
libxslt-1.1.30-glibc226.patch)
build() {
cd libxslt-$version
# https://github.com/GNOME/libxslt/commit/8b4babb8f742a1a189df4c4569e68eda308df68f
patch -p1 -i $SRC/libxslt-1.1.30-glibc226.patch
autoreconf
sed -i -e 's/libgcrypt-config/&-32/g' configure
./configure \
--prefix=/usr \
--libdir=/usr/lib32 \
--without-python
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
make DESTDIR=$PKG install
rm -r \
$PKG/usr/share/{aclocal,doc} \
$PKG/usr/{bin,include,share/man}
rmdir $PKG/usr/share
}