summaryrefslogtreecommitdiffstats
path: root/abs/extra/leveldb/PKGBUILD
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2016-01-16 23:05:34 (GMT)
committerBritney Fransen <brfransen@gmail.com>2016-01-16 23:05:34 (GMT)
commit1d82e9803e355eefc7f4db47ecc4b0a2c88ea27f (patch)
tree8220805a346ee31f7b8fffb8e4b64dc0055dea87 /abs/extra/leveldb/PKGBUILD
parent34e3c3f19af2ce74ef4361b691abae2c34df8398 (diff)
downloadlinhes_pkgbuild-1d82e9803e355eefc7f4db47ecc4b0a2c88ea27f.zip
linhes_pkgbuild-1d82e9803e355eefc7f4db47ecc4b0a2c88ea27f.tar.gz
linhes_pkgbuild-1d82e9803e355eefc7f4db47ecc4b0a2c88ea27f.tar.bz2
leveldb: initial inclusion. dep of qt5
Diffstat (limited to 'abs/extra/leveldb/PKGBUILD')
-rw-r--r--abs/extra/leveldb/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/abs/extra/leveldb/PKGBUILD b/abs/extra/leveldb/PKGBUILD
new file mode 100644
index 0000000..9c6b59f
--- /dev/null
+++ b/abs/extra/leveldb/PKGBUILD
@@ -0,0 +1,44 @@
+# $Id$
+# Maintainer: Dave Reisner <dreisner@archlinux.org>
+# Contributor: feydaykyn <feydaykyn@yahoo.fr>
+
+pkgname=leveldb
+pkgver=1.18
+pkgrel=2
+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')
+makedepends=('git')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/google/leveldb/archive/v$pkgver.tar.gz")
+sha1sums=('18684a0ad7a07920d10f5295b171fbf5eeec7337')
+
+build() {
+ 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 -m644 -t "$pkgdir/usr/lib" "libleveldb.so.${pkgver%.?*}" libleveldb.a
+ cp -P libleveldb.so* "$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"
+}