summaryrefslogtreecommitdiff
path: root/main/tdb/APKBUILD
blob: edc73c2c618317334e4b93939fbaf63d3369d8c2 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=tdb
pkgver=1.3.15
pkgrel=0
pkgdesc="The tdb library"
url="http://tdb.samba.org/"
arch="all"
license="LGPLv3+"
depends_dev="python2"
makedepends="$depends_dev python2-dev docbook-xsl"
subpackages="$pkgname-dev py-$pkgname:_py $pkgname-libs $pkgname-doc"
source="http://samba.org/ftp/tdb/tdb-$pkgver.tar.gz
	"

builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-rpath \
		--bundled-libraries=NONE \
		--builtin-libraries=replace
	make
}

check() {
	cd "$builddir"
	make check
}

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

_py() {
	pkgdesc="Python binding for the tdb library"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

libs() {
	default_libs
	replaces="tdb"
}

sha512sums="553246d5e7a7c22ea1b00962ac635d608f6d2344201862e796cad3b1a20610da1f5652ec9dbcb0187867fbd25f36247fcc34e9b4b2c3488c15d7202c9fb13bbb  tdb-1.3.15.tar.gz"