void-packages/srcpkgs/libxml2/template

54 lines
1.5 KiB
Plaintext
Raw Normal View History

# Template build file for 'libxml2'.
pkgname=libxml2
2013-05-11 10:09:23 +02:00
version=2.9.1
revision=2
build_style=gnu-configure
2012-08-10 06:00:03 +02:00
configure_args="--disable-static --with-threads --with-history"
makedepends="zlib-devel ncurses-devel readline-devel liblzma-devel python-devel"
short_desc="Library providing XML and HTML support"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-08-10 06:00:03 +02:00
homepage="http://www.xmlsoft.org/"
license="MIT"
distfiles="http://xmlsoft.org/sources/$pkgname-$version.tar.gz"
2013-05-11 10:09:23 +02:00
checksum=fd3c64cb66f2c4ea27e934d275904d92cec494a8e8405613780cbc8a71680fdb
if [ "$CROSS_BUILD" ]; then
2013-04-23 14:32:52 +02:00
hostmakedepends="automake libtool gettext-devel python-devel"
pre_configure() {
sed -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
autoreconf -fi
}
pre_build() {
2013-05-11 10:09:23 +02:00
sed -e "s|/usr/\(include/python2.7\)|$XBPS_CROSS_BASE/\1|g" -i python/Makefile
}
fi
2012-08-10 06:00:03 +02:00
post_install() {
vinstall COPYING 644 usr/share/licenses/${pkgname}
}
libxml2-devel_package() {
depends="zlib-devel libxml2>=${version}_${revision}"
2013-05-11 10:09:23 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/bin/xml2-config
vmove usr/lib/xml2Conf.sh
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
vmove usr/share/gtk-doc
vmove usr/share/doc/${sourcepkg}-${version}
vmove "usr/share/man/man1/xml2-config*"
vmove usr/share/man/man3
vmove "usr/lib/*.so"
}
}
libxml2-python_package() {
2013-05-11 10:09:23 +02:00
short_desc+=" - python extension"
pkg_install() {
vmove "usr/lib/python*"
vmove usr/share/doc/${sourcepkg}-python-${version}
}
}