void-packages/srcpkgs/gdbm/template

43 lines
1.1 KiB
Text
Raw Normal View History

# Template file for 'gdbm'
pkgname=gdbm
2014-01-01 16:07:40 +00:00
version=1.11
revision=1
build_style=gnu-configure
configure_args="--enable-libgdbm-compat --disable-rpath"
short_desc="GNU database routines"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://www.gnu.org.ua/software/gdbm/"
distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz"
2014-01-01 16:07:40 +00:00
checksum=8d912f44f05d0b15a4a5d96a76f852e905d051bb88022fcdfd98b43be093e3c3
long_desc="
GNU dbm is a set of database routines that use extensible hashing.
It works similar to the standard Unix dbm routines."
if [ "$CROSS_BUILD" ]; then
hostmakedepends="libtool automake>=1.13.1_2 gettext-devel"
pre_configure() {
autoreconf -fi
}
fi
post_install() {
# create symlinks for compatibility
vmkdir usr/include/gdbm
ln -sf ../gdbm.h ${DESTDIR}/usr/include/gdbm/gdbm.h
ln -sf ../ndbm.h ${DESTDIR}/usr/include/gdbm/ndbm.h
ln -sf ../dbm.h ${DESTDIR}/usr/include/gdbm/dbm.h
}
gdbm-devel_package() {
short_desc+=" - development files"
2014-01-01 16:07:40 +00:00
depends="gdbm>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
2014-01-01 16:07:40 +00:00
vmove "usr/lib/*.so"
vmove usr/share/info
2014-01-01 16:07:40 +00:00
vmove usr/share/man/man3
}
}