2008-10-25 02:33:04 +02:00
|
|
|
# Template file for 'gdbm'
|
|
|
|
pkgname=gdbm
|
2014-01-01 17:07:40 +01:00
|
|
|
version=1.11
|
2014-11-23 12:01:48 +01:00
|
|
|
revision=4
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2013-02-06 11:11:28 +01:00
|
|
|
configure_args="--enable-libgdbm-compat --disable-rpath"
|
2008-10-25 02:33:04 +02:00
|
|
|
short_desc="GNU database routines"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-11-17 15:41:06 +01:00
|
|
|
license="GPL-3"
|
2013-02-06 11:11:28 +01:00
|
|
|
homepage="http://www.gnu.org.ua/software/gdbm/"
|
|
|
|
distfiles="http://ftp.gnu.org/gnu/$pkgname/$pkgname-$version.tar.gz"
|
2014-01-01 17:07:40 +01:00
|
|
|
checksum=8d912f44f05d0b15a4a5d96a76f852e905d051bb88022fcdfd98b43be093e3c3
|
2008-10-25 02:33:04 +02:00
|
|
|
|
2013-04-09 01:49:27 +02:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2014-01-01 17:12:32 +01:00
|
|
|
hostmakedepends="libtool automake>=1.14.1_2 gettext-devel"
|
2013-03-25 23:43:48 +01:00
|
|
|
pre_configure() {
|
|
|
|
autoreconf -fi
|
|
|
|
}
|
|
|
|
fi
|
2012-01-13 09:55:03 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
2013-04-10 23:15:27 +02:00
|
|
|
|
|
|
|
gdbm-devel_package() {
|
|
|
|
short_desc+=" - development files"
|
2014-01-01 17:07:40 +01:00
|
|
|
depends="gdbm>=${version}_${revision}"
|
2013-04-10 23:15:27 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove "usr/lib/*.a"
|
2014-01-01 17:07:40 +01:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-10 23:15:27 +02:00
|
|
|
vmove usr/share/info
|
2014-01-01 17:07:40 +01:00
|
|
|
vmove usr/share/man/man3
|
2013-04-10 23:15:27 +02:00
|
|
|
}
|
|
|
|
}
|