diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-19 09:29:49 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-03-19 09:47:02 +0000 |
commit | 5816caf905555f062a14916a1be29adbc57d07ad (patch) | |
tree | 6679c1bf1f3313cec30185318db322f0e56dfb98 /testing/kyototycoon | |
parent | a201e6900cb6de13cb9fe52441378e36b0bb8787 (diff) | |
download | aports-5816caf905555f062a14916a1be29adbc57d07ad.tar.bz2 aports-5816caf905555f062a14916a1be29adbc57d07ad.tar.xz |
testing/kyototycoon: new aport
a leightweight cache/storage server
http://fallabs.com/kyototycoon/
Diffstat (limited to 'testing/kyototycoon')
-rw-r--r-- | testing/kyototycoon/APKBUILD | 59 | ||||
-rw-r--r-- | testing/kyototycoon/musl-header-fix.patch | 11 |
2 files changed, 70 insertions, 0 deletions
diff --git a/testing/kyototycoon/APKBUILD b/testing/kyototycoon/APKBUILD new file mode 100644 index 0000000000..63a5928aa1 --- /dev/null +++ b/testing/kyototycoon/APKBUILD @@ -0,0 +1,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" diff --git a/testing/kyototycoon/musl-header-fix.patch b/testing/kyototycoon/musl-header-fix.patch new file mode 100644 index 0000000000..75edaef889 --- /dev/null +++ b/testing/kyototycoon/musl-header-fix.patch @@ -0,0 +1,11 @@ +--- ./ktdbext.h.orig ++++ ./ktdbext.h +@@ -16,6 +16,8 @@ + #ifndef _KTDBEXT_H // duplication check + #define _KTDBEXT_H + ++#include <unistd.h> ++ + #include <ktcommon.h> + #include <ktutil.h> + #include <ktulog.h> |