summaryrefslogtreecommitdiff
path: root/extra/leveldb/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-09-23 01:12:09 -0700
committerroot <root@rshg054.dnsready.net>2012-09-23 01:12:09 -0700
commita7f8166c8968d3414378051d28dcfcc3e377837b (patch)
tree1b1b5c4383fe5d1f8c98c8c417fd588e67877e13 /extra/leveldb/PKGBUILD
parent0297e16d6d46f426939811847e72539d15bbf12d (diff)
Sun Sep 23 01:11:08 PDT 2012
Diffstat (limited to 'extra/leveldb/PKGBUILD')
-rw-r--r--extra/leveldb/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/extra/leveldb/PKGBUILD b/extra/leveldb/PKGBUILD
new file mode 100644
index 000000000..23b59b1da
--- /dev/null
+++ b/extra/leveldb/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 166942 2012-09-22 20:23:58Z dreisner $
+# Maintainer: Dave Reisner <dreisner@archlinux.org>
+# Contributor: feydaykyn <feydaykyn@yahoo.fr>
+
+pkgname=leveldb
+pkgver=1.5.0
+pkgrel=4
+pkgdesc="A fast and lightweight key/value database library"
+arch=('i686' 'x86_64')
+url="https://code.google.com/p/leveldb/"
+license=('BSD')
+depends=('gperftools' 'snappy')
+source=("https://leveldb.googlecode.com/files/$pkgname-$pkgver.tar.gz")
+sha1sums=('b5b45ff74065f242c37f465b13dafb925972ca43')
+
+build() {
+ # buildsys doesn't play nicely with -Wl,--as-needed
+ LDFLAGS=-Wl,-O1,--sort-common,-z,relro
+
+ make -C "$pkgname-$pkgver"
+}
+
+check() {
+ make -C "$pkgname-$pkgver" check
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+
+ install -dm755 \
+ "$pkgdir"/usr/{include/leveldb,lib} \
+ "$pkgdir"/usr/share/doc/"$pkgname"
+
+ # libraries
+ install -m755 -t "$pkgdir/usr/lib" libleveldb.so.1.5 libleveldb.a
+ cp -P libleveldb.so{,.1} "$pkgdir/usr/lib"
+
+ # headers
+ install -m644 -t "$pkgdir/usr/include/leveldb" include/leveldb/*
+
+ # documentation
+ cp -r doc/* "$pkgdir/usr/share/doc/$pkgname"
+
+ # license
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}