diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-06-06 11:27:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-06-06 11:28:08 +0000 |
commit | 56f383ebc4b5c983208b8b513964a3472ed37e7c (patch) | |
tree | 0357118977ac3904839d9ede4cacbd223f3bb2f9 /testing/tokyocabinet/APKBUILD | |
parent | ba9ef85dca385b4fc4dede8ed1a89ef50621f234 (diff) | |
download | aports-56f383ebc4b5c983208b8b513964a3472ed37e7c.tar.bz2 aports-56f383ebc4b5c983208b8b513964a3472ed37e7c.tar.xz |
testing/tokyocabinet: new aport
GDBM and QDBM successor
http://fallabs.com/tokyocabinet
Diffstat (limited to 'testing/tokyocabinet/APKBUILD')
-rw-r--r-- | testing/tokyocabinet/APKBUILD | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/testing/tokyocabinet/APKBUILD b/testing/tokyocabinet/APKBUILD new file mode 100644 index 0000000000..1b6c85113d --- /dev/null +++ b/testing/tokyocabinet/APKBUILD @@ -0,0 +1,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" |