aboutsummaryrefslogtreecommitdiffstats
path: root/testing/kyototycoon/APKBUILD
blob: 63a5928aa18714740372f2fb7147073964f49906 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer:
pkgname=kyototycoon
pkgver=0.9.56
pkgrel=0
pkgdesc="a leightweight cache/storage server"
url="http://fallabs.com/kyototycoon/"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev lua5.1-dev zlib-dev kyotocabinet-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://fallabs.com/kyototycoon/pkg/kyototycoon-$pkgver.tar.gz
	musl-header-fix.patch
	"

_builddir="$srcdir"/kyototycoon-$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 \
		--libexecdir=/usr/lib/kyototycoon \
		--disable-static \
		--enable-lua \
		--with-lua=/usr/lua5.1 \
		|| return 1
	make || return 1
}

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

md5sums="2e95a4681f6d05f9e363985fbb933948  kyototycoon-0.9.56.tar.gz
765f21d0bdad8b07c283330bc460693d  musl-header-fix.patch"
sha256sums="553e4ea83237d9153cc5e17881092cefe0b224687f7ebcc406b061b2f31c75c6  kyototycoon-0.9.56.tar.gz
78b17a2fad4f065bbf7d8b3e1636ab5fed0ca30990b2ebd9393c60d77f2b13e9  musl-header-fix.patch"
sha512sums="7722297287194d67dfaae9e7595439274d7639d139a954eb8dee4a5e6d019e8a1da3773b538e80244eb97b867f0b6d0db592fa66fdbb2bd8d9358a6acd82cd4c  kyototycoon-0.9.56.tar.gz
2953c5f3b9cc4ef54d14fa9481b9c4085fd1bb200d03c60582ec947329ecb0da696c164d74e88aa1a766b9475f0ab3c98b17ab18998286de6f3730513255ed0a  musl-header-fix.patch"