54 lines
1.5 KiB
Bash
54 lines
1.5 KiB
Bash
# Template file for 'libxslt'
|
|
pkgname=libxslt
|
|
version=1.1.33
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static"
|
|
makedepends="python-devel libxml2-devel libxml2-python libgcrypt-devel"
|
|
short_desc="XSLT parser library from the GNOME project"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://xmlsoft.org/XSLT/"
|
|
distfiles="ftp://xmlsoft.org/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=8e36605144409df979cab43d835002f63988f3dc94d5d3537c12796db90e38c8
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends="libtool automake gettext-devel ${makedepends}"
|
|
pre_build() {
|
|
sed -e "s|/usr/\(include/python2.7\)|$XBPS_CROSS_BASE/\1|g" \
|
|
-e "s|/usr/\(lib/python2.7/site-packages\)|$XBPS_CROSS_BASE/\1|g" \
|
|
-i python/Makefile
|
|
}
|
|
fi
|
|
|
|
post_install() {
|
|
# Remove references to the install(1) wrapper.
|
|
sed -e "s,${XBPS_WRAPPERDIR},/usr/bin,g" -i ${DESTDIR}/usr/bin/xslt-config
|
|
vlicense COPYING
|
|
}
|
|
|
|
libxslt-devel_package() {
|
|
depends="libxml2-devel ${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/bin/xslt-config
|
|
vmove usr/lib/xsltConf.sh
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/share/aclocal
|
|
vmove usr/share/doc/${sourcepkg}-${version}
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|
|
|
|
libxslt-python_package() {
|
|
lib32disabled=yes
|
|
short_desc+=" - python extension"
|
|
pycompile_module="libxslt.py"
|
|
pkg_install() {
|
|
vmove "usr/lib/python*"
|
|
vmove usr/share/doc/${sourcepkg}-python-${version}
|
|
}
|
|
}
|