aboutsummaryrefslogtreecommitdiffstats
path: root/main/gdbm/APKBUILD
blob: eec7d7213080d4ceede6d575bd210a0a08a370d0 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gdbm
pkgver=1.18.1
pkgrel=0
pkgdesc="GNU dbm is a set of database routines that use extensible hashing"
url="https://www.gnu.org/software/gdbm/"
arch="all"
license="GPL-3.0-or-later"
subpackages="$pkgname-dev $pkgname-doc"
source="https://ftp.gnu.org/gnu/gdbm/gdbm-$pkgver.tar.gz
	gcc-10.patch
	"

build() {
	# 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
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="adf9d6c5bc843ff0d7f88c2a1667d509973b2d63378d0001d7e74cc10aee6ea498a4513cc88ddf78c32ba4db5cb040b2794f4f1b3338c65d9894058850e2f5ef  gdbm-1.18.1.tar.gz
726eaea1cff44e5781955fc52af150c3712844acc7ebac0f5ef53838c2314e67019b62853404c8aaa276cacce9a52cfc1a5b8b9809e1e5f66c940cc0ef3eaf90  gcc-10.patch"