void-packages/srcpkgs/gdbm/template
Jürgen Buchmüller 9f777787f6 gdbm: needs -fcommon for gcc10
[ci skip]
2020-08-28 18:25:32 +02:00

41 lines
1 KiB
Bash

# Template file for 'gdbm'
pkgname=gdbm
version=1.18.1
revision=1
build_style=gnu-configure
configure_args="--enable-libgdbm-compat --disable-rpath"
short_desc="GNU database routines"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://www.gnu.org.ua/software/gdbm/"
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=86e613527e5dba544e73208f42b78b7c022d4fa5a6d5498bf18c8d6f745b91dc
if [ "$CROSS_BUILD" ]; then
hostmakedepends="libtool automake gettext-devel"
pre_configure() {
autoreconf -fi
}
fi
CFLAGS="-fcommon"
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"
depends="gdbm>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/share/info
vmove usr/share/man/man3
}
}