void-packages/srcpkgs/autogen/template

44 lines
1.1 KiB
Plaintext

# Template build file for 'autogen'.
pkgname=autogen
version=5.17.4
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config which guile"
makedepends="guile-devel libxml2-devel gc-devel"
short_desc="The Automated Program Generator"
maintainer="davehome <davehome@redthumb.info.tm>"
license="GPL3"
homepage="http://autogen.sourceforge.net/"
distfiles="${GNU_SITE}/${pkgname}/rel${version}/${pkgname}-${version}.tar.gz"
checksum=cd2585f4794d0e9d7f2cb0b9af4f2bd429946e718473edf1cf8c49f081ca71ed
do_configure() {
GUILE_CFLAGS="$(pkg-config --cflags guile-2.0)"
GUILE_LDFLAGS="$(pkg-config --libs guile-2.0)"
./configure ${configure_args} --with-libguile-cflags="${GUILE_CFLAGS}" \
--with-libguile-libs="${GUILE_LDFLAGS}"
}
post_install() {
mv -v ${DESTDIR}/usr/share/pkgconfig ${DESTDIR}/usr/lib
}
autogen-devel_package() {
short_desc+=" (Development files)"
depends="autogen"
pkg_install() {
vmove usr/include
vmove usr/lib/libopts.a
vmove usr/lib/pkgconfig
vmove usr/share/aclocal
}
}
autogen-docs_package() {
short_desc+=" (Documentation)"
pkg_install() {
vmove usr/share/info
vmove usr/share/man
}
}