aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/tokyocabinet/APKBUILD
blob: 1b6c85113d12fcf64ae82a6fd07026f4b9c4f50a (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
55
56
57
58
59
60
# Contributor: Franz Bettag <franz@bett.ag>
# Maintainer:
pkgname=tokyocabinet
pkgver=1.4.48
pkgrel=0
pkgdesc="GDBM and QDBM successor"
url="http://fallabs.com/tokyocabinet"
arch="all"
license="LGPL"
depends=""
makedepends="zlib-dev bzip2-dev autoconf"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://fallabs.com/$pkgname/$pkgname-$pkgver.tar.gz
	tokyocabinet-manhelp.patch
	dynamic-linking.patch
	"

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

build() {
	cd "$_builddir"
	LDFLAGS="$LDFLAGS -lpthread" ./configure \
		--disable-static \
		--prefix /usr \
		--enable-off64 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" DATADIR=/usr/share/doc install || return 1
}

libs() {
	pkgdesc="tokyocabinet library"
	mkdir -p "$subpkgdir"/usr
	mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
}

md5sums="fd03df6965f8f56dd5b8518ca43b4f5e  tokyocabinet-1.4.48.tar.gz
9ea4b840cec6831ba8ddd0696f9ab756  tokyocabinet-manhelp.patch
e76ef468636f1580f6d7a9baee0d806c  dynamic-linking.patch"
sha256sums="a003f47c39a91e22d76bc4fe68b9b3de0f38851b160bbb1ca07a4f6441de1f90  tokyocabinet-1.4.48.tar.gz
1c40b06e4f35d85d36b2a6218d945acf8cce6da98dc3ac23233a034e35276bc1  tokyocabinet-manhelp.patch
edfcb01c20971cc9bbbb3b8d7e2ca8a34613b8e3fb2ffc9db8643665ef9a2246  dynamic-linking.patch"
sha512sums="b9995c838e713c13f781ab41062caefeb5c613f696dab08039f992f6860413d60a513114b83468cafdf7fc5b5e51ab880226972465d532f873f2a55f615e1440  tokyocabinet-1.4.48.tar.gz
7fb5cdbf0feeaae42de2a21b3fb41b7ef3b6b353ec12799362044a18b4b3ee59a6c9938d367f6142c00e89e4e8712d5560c027ac71eb3125f95059cca0077157  tokyocabinet-manhelp.patch
dd0f5c22b88bb64820f53992d17bb924363e40fa27d4a2ea98224faf51272eed85ce8c91dbe6334a5f3e1fececb4b25f09d4d507305a171446d0612f92255271  dynamic-linking.patch"