void-packages/srcpkgs/mxml/template

38 lines
942 B
Bash

# Template file for 'mxml'
pkgname=mxml
version=2.10
revision=1
build_style=gnu-configure
configure_args="--enable-static --enable-shared"
short_desc="Minimal XML library"
maintainer="Jürgen Buchmüller <pullmoll@t-online.de>"
license="GPL-2"
homepage="http://www.minixml.org/"
distfiles="http://www.msweet.org/files/project3/${pkgname}-${version}.tar.gz"
checksum=267ff58b64ddc767170d71dab0c729c06f45e1df9a9b6f75180b564f09767891
pre_configure() {
# Disable testxml (fixes cross builds)
sed -i Makefile.in \
-e "s;testmxml mxml.xml;mxml.xml;"
if [ "$CROSS_BUILD" ]; then
# Disable generating mxml.xml
sed -i Makefile.in \
-e "/.*\.\/mxmldoc-static.*/d"
fi
}
do_install() {
make DSTROOT="${DESTDIR}" install
}
mxml-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.a
vmove usr/lib/*.so
}
}