blob: d8bcde09a31b8cd19e02e3d7d7c1c808029a2633 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $Id$
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Allan McRae <allan@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>
pkgname=gdbm
pkgver=1.14.1
pkgrel=1
pkgdesc='GNU database library'
url='http://www.gnu.org/software/gdbm/gdbm.html'
license=(GPL3)
arch=(x86_64)
depends=()
options=()
source=(http://ftp.gnu.org/gnu/gdbm/${pkgname}-${pkgver}.tar.gz{,.sig})
validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732')
md5sums=('c2ddcb3897efa0f57484af2bd4f4f848'
'SKIP')
build() {
cd $pkgname-$pkgver
./configure --prefix=$BUILD_PREFIX \
--enable-libgdbm-compat \
--with-libiconv-prefix=$BUILD_ROOTDIR \
--with-libintl-prefix=$BUILD_ROOTDIR
make
}
check() {
cd $pkgname-$pkgver
#make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
fix_rpath
# create symlinks for compatibility
install -dm755 "$pkgdir${BUILD_PREFIX}/include/gdbm"
ln -sf ../gdbm.h "$pkgdir${BUILD_PREFIX}/include/gdbm/gdbm.h"
ln -sf ../ndbm.h "$pkgdir${BUILD_PREFIX}/include/gdbm/ndbm.h"
ln -sf ../dbm.h "$pkgdir${BUILD_PREFIX}/include/gdbm/dbm.h"
}
|