apkbuilds @ 121d6f029f4ebc205915bb5a0c74ecde7d874b32

 1# Contributor: Ɓukasz Jendrysik <scadu@yandex.com>
 2# Contributor: Carlo Landmeter <clandmeter@gmail.com>
 3# Maintainer:
 4pkgname=libzdb
 5pkgver=3.2.2
 6pkgrel=0
 7pkgdesc="A thread-safe high level multi-database connection pool library"
 8url="http://www.tildeslash.com/libzdb/"
 9arch="all"
10license="GPL"
11depends=
12depends_dev="flex-dev sqlite-dev mariadb-dev postgresql-dev"
13makedepends="$depends_dev flex"
14install=""
15subpackages="$pkgname-dev"
16source="http://www.tildeslash.com/libzdb/dist/libzdb-$pkgver.tar.gz"
17
18_builddir="$srcdir/$pkgname-$pkgver"
19
20prepare() {
21	local i
22	cd "$_builddir"
23	for i in $source; do
24		case $i in
25		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
26		esac
27	done
28}
29
30build() {
31	cd "$_builddir"
32	./configure --prefix=/usr \
33		--sysconfdir=/etc \
34		--mandir=/usr/share/man \
35		--enable-optimized \
36		--infodir=/usr/share/info
37	make || return 1
38}
39
40package() {
41	cd "$_builddir"
42	make DESTDIR="$pkgdir" install || return 1
43}
44sha512sums="
451e732f8785322e0369de16a8100c9467e96ad1ca4eee31e8bfc349f4f17d4cc237a691addc060a66e1b46bcfeb99c3aed07b1d5dbe20e70fde4ffbf35dbea2eb  libzdb-3.2.2.tar.gz
46"