aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kyotocabinet/APKBUILD
blob: 3551888b288fa32a0eb5faacb5821811a69d5e21 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=kyotocabinet
pkgver=1.2.76
pkgrel=0
pkgdesc="A straightforward implementation of DBM"
url="http://fallabs.com/kyotocabinet/"
arch="all"
license="GPLv3"
depends=""
depends_dev=""
makedepends="$depends_dev zlib-dev lzo-dev xz-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://fallabs.com/kyotocabinet/pkg/kyotocabinet-$pkgver.tar.gz
	kyotocabinet-1.2.76-8-byte-atomics.patch
	"

_builddir="$srcdir"/kyotocabinet-$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
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="b925d369d7ed4a37cf0013409046738c  kyotocabinet-1.2.76.tar.gz
bb24d2950afee01e8933d87d5ca683e4  kyotocabinet-1.2.76-8-byte-atomics.patch"
sha256sums="812a2d3f29c351db4c6f1ff29d94d7135f9e601d7cc1872ec1d7eed381d0d23c  kyotocabinet-1.2.76.tar.gz
2ffa53de979c5a9bde3b147a6842482ba102ada77d134b6f503297350882883e  kyotocabinet-1.2.76-8-byte-atomics.patch"
sha512sums="278db7b327eb4c21bf0137d9aa14fb67d74d5ce7ed1cb29fc9120d157a60de165ec0cf842903eb7952e8f998045ae585b958977fa973ba0e0773381de71d9f6a  kyotocabinet-1.2.76.tar.gz
cac619578fa354052976a286f6b3630c52eeb41350cc2bf72227b53a759b982c8dc5ddf9a558cd74441830d9ec544edafbd138295522fe1ad239c8a3d0862730  kyotocabinet-1.2.76-8-byte-atomics.patch"