aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/leveldb/APKBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/testing/leveldb/APKBUILD b/testing/leveldb/APKBUILD
new file mode 100644
index 0000000000..8c83313f4a
--- /dev/null
+++ b/testing/leveldb/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer:
+pkgname=leveldb
+pkgver=1.12.0
+pkgrel=0
+pkgdesc="A fast and lightweight key/value database library by Google"
+url="http://code.google.com/p/leveldb/"
+arch="all"
+license="BSD"
+depends=""
+depends_dev=""
+makedepends="$depends_dev snappy-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://leveldb.googlecode.com/files/leveldb-$pkgver.tar.gz"
+
+_builddir="$srcdir"/leveldb-$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"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir"/usr/lib "$pkgdir"/usr/share/doc
+ cp -a lib*.so* "$pkgdir"/usr/lib || return 1
+ cp -a include "$pkgdir"/usr/ || return 1
+ cp -a doc "$pkgdir"/usr/share/doc/$pkgname || return 1
+
+}
+
+md5sums="940a93e3538636e1d6d3407ca41b6397 leveldb-1.12.0.tar.gz"
+sha256sums="a50b44bcae9680c2872081df98395a34a1ac3162ea41f646676e53fb5f691108 leveldb-1.12.0.tar.gz"
+sha512sums="b0798ecc598a7dcee38887867521face02b11ec93bc55e28fb3e1e16fb9c4d2068564f7779849a0dc0d758ee9665c2297c004947bedd149e392c129fc39a921f leveldb-1.12.0.tar.gz"