[arch-commits] Commit in leveldb/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Sat Nov 10 00:43:28 UTC 2018
Date: Saturday, November 10, 2018 @ 00:43:28
Author: foutrelis
Revision: 338879
archrelease: copy trunk to staging-x86_64
Added:
leveldb/repos/staging-x86_64/
leveldb/repos/staging-x86_64/PKGBUILD
(from rev 338878, leveldb/trunk/PKGBUILD)
----------+
PKGBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
Copied: leveldb/repos/staging-x86_64/PKGBUILD (from rev 338878, leveldb/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-11-10 00:43:28 UTC (rev 338879)
@@ -0,0 +1,43 @@
+# Maintainer: Dave Reisner <dreisner at archlinux.org>
+# Contributor: feydaykyn <feydaykyn at yahoo.fr>
+
+pkgname=leveldb
+pkgver=1.20
+pkgrel=2
+pkgdesc="A fast and lightweight key/value database library"
+arch=('x86_64')
+url="https://github.com/google/leveldb"
+license=('BSD')
+depends=('gperftools' 'snappy')
+makedepends=('git')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/google/leveldb/archive/v$pkgver.tar.gz")
+sha1sums=('df11440c30deed5987263730180225db98de9f57')
+
+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" "out-static/libleveldb.a"
+ cp -P out-shared/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"
+}
More information about the arch-commits
mailing list