diff options
author | Tony Lambiris | 2016-06-06 20:31:19 -0400 |
---|---|---|
committer | Tony Lambiris | 2016-06-06 20:31:19 -0400 |
commit | 8f9e91ad4f15f13114f9567fbe84578ff58f4792 (patch) | |
tree | d19c64f5327e507f161550be439eb59213be6607 | |
download | aur-8f9e91ad4f15f13114f9567fbe84578ff58f4792.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 36 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d130cf5d022e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = rocksdb-static + pkgdesc = Embedded key-value store for fast storage (static library) + pkgver = 4.4 + pkgrel = 1 + url = http://rocksdb.org + arch = i686 + arch = x86_64 + license = BSD + checkdepends = python2 + depends = gperftools + depends = zlib + depends = bzip2 + depends = lz4 + depends = snappy + depends = gcc-libs + source = https://github.com/facebook/rocksdb/archive/rocksdb-4.4.zip + sha256sums = 4e486e3580aa5828572265065b033699ec7c5db294d6dd0eb56f9d32c9580870 + +pkgname = rocksdb-static + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e5bca76ab089 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Maintainer: Tony <tony@criticalstack.com> + +pkgname=rocksdb-static +pkgver=4.4 +pkgrel=1 +pkgdesc='Embedded key-value store for fast storage (static library)' +arch=(i686 x86_64) +url='http://rocksdb.org' +license=(BSD) +depends=(gperftools zlib bzip2 lz4 snappy gcc-libs) +checkdepends=(python2) +source=(https://github.com/facebook/rocksdb/archive/rocksdb-$pkgver.zip) +sha256sums=('4e486e3580aa5828572265065b033699ec7c5db294d6dd0eb56f9d32c9580870') + +prepare() { + cd rocksdb-rocksdb-$pkgver + sed -e 's/\bpython\b/python2/' -i Makefile + if [ "$CARCH" == "armv6h" ]; then + sed -e 's/-momit-leaf-frame-pointer//' -i Makefile + fi +} + +build() { + cd rocksdb-rocksdb-$pkgver + make static_lib +} + +check() { + cd rocksdb-rocksdb-$pkgver +} + +package() { + cd rocksdb-rocksdb-$pkgver + install -m755 -D librocksdb.a "$pkgdir"/usr/lib/librocksdb.a + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |