aboutsummaryrefslogtreecommitdiffstats
path: root/main/gdbm/APKBUILD
blob: 8137e9bbdb8601145b8b6f9f4cc318980a799a7d (plain)
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
47
48
49
50
51
52
53
54
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gdbm
pkgver=1.12
pkgrel=0
pkgdesc="GNU dbm is a set of database routines that use extensible hashing"
url="http://www.gnu.org/software/gdbm/"
arch="all"
license="GPL"
depends=""
makedepends=""
install=
subpackages="$pkgname-dev $pkgname-doc"
source="ftp://ftp.nluug.nl/pub/gnu/gdbm/gdbm-$pkgver.tar.gz
	gdbm-1.10-zeroheaders.patch"

_builddir="$srcdir"/gdbm-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	# we disable large-file due to it makes the db file non-compat
	# with gdbm-1.8.3
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--enable-libgdbm-compat \
		--disable-largefile \
		--disable-dependency-tracking \
		--enable-fast-install \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1

}

md5sums="9ce96ff4c99e74295ea19040931c8fb9  gdbm-1.12.tar.gz
ac255b10452005237836cd2d3a470733  gdbm-1.10-zeroheaders.patch"
sha256sums="d97b2166ee867fd6ca5c022efee80702d6f30dd66af0e03ed092285c3af9bcea  gdbm-1.12.tar.gz
ff33700f7919039037e5f56452c56ca00e968637f6f38485c9b8ae586770ee5a  gdbm-1.10-zeroheaders.patch"
sha512sums="25e03dceed6986f1977d304a5ad059ac6c603a88ad4aa18c831ec42df82d68006f2e04b8a3cc400d0a4970750c78ba24a3f84cdff70de9f278cfd854c059699e  gdbm-1.12.tar.gz
48e41ba3b3b3d6b1c0a0931324fe6341fddbaa1de64aaf8dcdda8adba447e3d72fa8c9e9aff9c6701cc13c6dc57287567aa992e78d5f398d38eb656564137974  gdbm-1.10-zeroheaders.patch"