vp-build/srcpkgs/autogen/template

38 lines
1.1 KiB
Bash

# Template build file for 'autogen'.
pkgname=autogen
version=5.18.4
revision=7
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config perl"
makedepends="guile guile-devel libxml2-devel gc-devel"
depends="guile perl"
short_desc="The Automated Program Generator"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-3"
homepage="http://autogen.sourceforge.net/"
distfiles="${GNU_SITE}/${pkgname}/rel${version}/${pkgname}-${version}.tar.gz"
checksum=3cd9f81a8ae7c6865bb9bbbe16c4307a243a1373d0b315a83571cbba1fff725d
replaces="autogen-docs>=0 autogen-devel>=0"
post_install() {
mv -v ${DESTDIR}/usr/share/pkgconfig ${DESTDIR}/usr/lib
if [ "$SOURCE_DATE_EPOCH" ]; then
# repackaging libopts to apply correct mtimes
mkdir libopts
tar xf $DESTDIR/usr/share/autogen/libopts-41.0.16.tar.gz -C libopts
find libopts -print0 | xargs -0 touch --date "@$SOURCE_DATE_EPOCH"
cd libopts
tar cf $DESTDIR/usr/share/autogen/libopts-41.0.16.tar.gz *
fi
}
libopts_package() {
short_desc+=" - argument parsing library"
pkg_install() {
vmove "usr/lib/libopts.so.*"
}
}