summaryrefslogtreecommitdiff
path: root/core/gdbm/PKGBUILD
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-12-01 11:08:57 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-12-01 11:08:57 -0300
commit1200fd46a32625f2ac4b035653cb49c22cce6426 (patch)
tree0723ee124b40e6e95200ca002f9ae81361ab7919 /core/gdbm/PKGBUILD
parent0d0d9e0930114504c15aa8174e2c7d1d2b7a6744 (diff)
parentfd115d7057eb8243df6edfaf1ed440d6f3e70692 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/iat/PKGBUILD community/libnsbmp/PKGBUILD community/libnsgif/PKGBUILD community/libopenraw/PKGBUILD community/netsurf/PKGBUILD core/bison/PKGBUILD core/perl/PKGBUILD extra/avahi/PKGBUILD extra/mutt/PKGBUILD extra/php/PKGBUILD
Diffstat (limited to 'core/gdbm/PKGBUILD')
-rw-r--r--core/gdbm/PKGBUILD60
1 files changed, 29 insertions, 31 deletions
diff --git a/core/gdbm/PKGBUILD b/core/gdbm/PKGBUILD
index 633a7b177..393a4abbe 100644
--- a/core/gdbm/PKGBUILD
+++ b/core/gdbm/PKGBUILD
@@ -1,24 +1,22 @@
-# $Id: PKGBUILD 142193 2011-11-06 02:28:38Z stephane $
-# Maintainer: Allan McRae <allan@archlinux.org>
+# $Id: PKGBUILD 143800 2011-11-29 13:32:53Z stephane $
+# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
+# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=gdbm
-pkgver=1.8.3
-pkgrel=9
+pkgver=1.10
+pkgrel=1
pkgdesc="GNU database library"
url="http://www.gnu.org/software/gdbm/gdbm.html"
license=('GPL')
arch=('i686' 'x86_64' 'mips64el')
depends=('glibc' 'sh')
source=(ftp://ftp.gnu.org/gnu/gdbm/${pkgname}-${pkgver}.tar.gz
- gdbm-1.8.3-zeroheaders.patch
- gdbm-1.8.3-fhs.patch)
+ gdbm-1.10-zeroheaders.patch)
options=('!libtool' '!makeflags')
install=gdbm.install
-md5sums=('1d1b1d5c0245b1c00aff92da751e9aa1'
- 'a2ed344be9258775bd718074cf2e4ec6'
- '66a7c235416c136dc89efc7d03352514')
-
+md5sums=('88770493c2559dc80b561293e39d3570'
+ 'ac255b10452005237836cd2d3a470733')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
@@ -28,32 +26,32 @@ build() {
# from other applications.
# https://bugzilla.redhat.com/show_bug.cgi?id=4457
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208927
- patch -Np1 -i ../gdbm-1.8.3-zeroheaders.patch
-
- # Make gdbm buildable.
- patch -Np1 -i ../gdbm-1.8.3-fhs.patch
-
- libtoolize --force --copy
- aclocal
- autoconf
-
- ./configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
+ patch -Np1 -i ../gdbm-1.10-zeroheaders.patch
- # flock does not work on nfs, we use fcntl instead
- # https://bugzilla.redhat.com/show_bug.cgi?id=477300
- echo "/* We use fcntl locking (POSIX) instead of flock (BSD) */" >> autoconf.h
- echo "#undef HAVE_FLOCK" >> autoconf.h
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --enable-libgdbm-compat
make prefix=/usr
}
-package() {
+check() {
cd "${srcdir}/${pkgname}-${pkgver}"
- make prefix=$pkgdir/usr \
- manprefix=$pkgdir/usr/share/man \
- man3dir=$pkgdir/usr/share/man/man3 \
- infodir=$pkgdir/usr/share/info \
- install install-compat
+ make check
+}
- ln -sf gdbm/gdbm.h $pkgdir/usr/include
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make prefix="${pkgdir}"/usr \
+ manprefix="${pkgdir}"/usr/share/man \
+ man3dir="${pkgdir}"/usr/share/man/man3 \
+ infodir="${pkgdir}"/usr/share/info \
+ install
+
+ # create symlinks for compatibility
+ install -dm755 "${pkgdir}"/usr/include/gdbm
+ ln -sf ../gdbm.h "${pkgdir}"/usr/include/gdbm/gdbm.h
+ ln -sf ../ndbm.h "${pkgdir}"/usr/include/gdbm/ndbm.h
+ ln -sf ../dbm.h "${pkgdir}"/usr/include/gdbm/dbm.h
}