compat-32/libxslt-32/Pkgfile

37 lines
808 B
Plaintext
Raw Normal View History

# 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
2018-07-06 14:09:49 +02:00
version=1.1.30
release=1
2018-07-06 14:09:49 +02:00
source=(http://xmlsoft.org/sources/libxslt-$version.tar.gz
libxslt-1.1.30-glibc226.patch)
build() {
cd libxslt-$version
2013-03-19 16:27:28 +01:00
2018-07-06 14:09:49 +02:00
# 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
2013-03-19 16:27:28 +01:00
./configure \
--prefix=/usr \
--libdir=/usr/lib32 \
--without-python
2013-03-19 16:27:28 +01:00
2016-08-10 12:31:05 +02:00
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
make DESTDIR=$PKG install
2013-03-19 16:27:28 +01:00
rm -r \
$PKG/usr/share/{aclocal,doc} \
2016-08-10 12:31:05 +02:00
$PKG/usr/{bin,include,share/man}
2013-03-19 16:27:28 +01:00
rmdir $PKG/usr/share
}