aboutsummaryrefslogtreecommitdiffstats
path: root/testing/leveldb
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-12-02 08:13:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-12-02 08:46:34 +0000
commit8286e200f024060f1e8aa083e437ece4b0e125f6 (patch)
tree0474b6d7ccd86ed2ec0294310f8c2b5f8b75c1fa /testing/leveldb
parent42d989462bd7ee65aa08eed229fb34d0e4dcf587 (diff)
downloadaports-8286e200f024060f1e8aa083e437ece4b0e125f6.tar.bz2
aports-8286e200f024060f1e8aa083e437ece4b0e125f6.tar.xz
testing/leveldb: new aport
A fast and lightweight key/value database library by Google http://code.google.com/p/leveldb/
Diffstat (limited to 'testing/leveldb')
-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"