63 lines
1.7 KiB
Bash
63 lines
1.7 KiB
Bash
# Template file for 'libxslt'
|
|
pkgname=libxslt
|
|
version=1.1.35
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --disable-dependency-tracking"
|
|
hostmakedepends="docbook-xml docbook-xsl libtool pkg-config"
|
|
makedepends="libxml2-devel libgcrypt-devel"
|
|
short_desc="XSLT parser library from the GNOME project"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="MIT"
|
|
homepage="http://xmlsoft.org/XSLT/"
|
|
distfiles="https://download.gnome.org/sources/libxslt/${version%.*}/libxslt-${version}.tar.xz"
|
|
checksum=8247f33e9a872c6ac859aa45018bc4c4d00b97e2feac9eebc10c93ce1f34dd79
|
|
python_version=3
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" libxslt"
|
|
fi
|
|
|
|
post_configure() {
|
|
# Remove missing seperators and errors
|
|
# on don't know how to make target, needed
|
|
# by Usage:
|
|
# Makefile is created after configure so fix here
|
|
find ${wrksrc} -type f -name Makefile | xargs sed -i '/Usage/,/--version/d'
|
|
}
|
|
|
|
post_build() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
XSLTPROC=/usr/bin/xsltproc
|
|
else
|
|
XSLTPROC=${wrksrc}/xsltproc/xsltproc
|
|
fi
|
|
make -C doc XSLTPROC=$XSLTPROC
|
|
}
|
|
|
|
post_install() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
# Remove $XBPS_CROSS_BASE in pkg-config
|
|
vsed -i -e "s,-I${XBPS_CROSS_BASE}/usr/include,-I\${includedir}," \
|
|
$DESTDIR/usr/bin/xslt-config
|
|
vsed -i -e "s,$XBPS_CROSS_BASE,,g" \
|
|
$DESTDIR/usr/lib/pkgconfig/libexslt.pc
|
|
fi
|
|
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
|
|
vmove usr/share/man/man3
|
|
}
|
|
}
|