summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO24
-rw-r--r--PKGBUILD39
2 files changed, 63 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..37c970ecd23
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,24 @@
+pkgbase = rocksdb-ldb
+ pkgdesc = The ldb from the RocksDB storage
+ pkgver = 6.6.4
+ pkgrel = 1
+ url = http://rocksdb.org
+ arch = i686
+ arch = x86_64
+ license = Apache
+ license = leveldb
+ makedepends = gcc
+ makedepends = make
+ makedepends = diffutils
+ depends = bzip2
+ depends = gcc-libs
+ depends = lz4
+ depends = snappy
+ depends = zlib
+ depends = gflags
+ provides = rocksdb-ldb
+ source = https://github.com/facebook/rocksdb/archive/v6.6.4.tar.gz
+ sha256sums = feab859ee355fbe7beffd7085904b63f560417f450f83cc34310e6dadff936f6
+
+pkgname = rocksdb-ldb
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fbb646b023b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+pkgname=rocksdb-ldb
+pkgver=6.6.4
+pkgrel=1
+pkgdesc='The 'ldb' from the RocksDB storage'
+arch=(i686 x86_64)
+url='http://rocksdb.org'
+license=(Apache leveldb)
+depends=(
+'bzip2'
+'gcc-libs'
+'lz4'
+'snappy'
+'zlib'
+'gflags'
+)
+makedepends=('gcc' 'make' 'diffutils')
+source=(https://github.com/facebook/rocksdb/archive/v6.6.4.tar.gz)
+sha256sums=('feab859ee355fbe7beffd7085904b63f560417f450f83cc34310e6dadff936f6')
+provides=(rocksdb-ldb)
+
+prepare() {
+ ls -alh
+ cd "rocksdb-$pkgver"
+ sed -e 's/\bpython\b/python2/' -i Makefile
+ if [ "" == "armv6h" ]; then
+ sed -e 's/-momit-leaf-frame-pointer//' -i Makefile
+ fi
+}
+
+build() {
+ cd "rocksdb-$pkgver"
+ make clean
+ DISABLE_WARNING_AS_ERROR=1 DEBUG_LEVEL=0 make ldb -j4
+}
+
+package() {
+ cd "rocksdb-$pkgver"
+ install -m755 -D ldb "$pkgdir"/usr/bin/rocksdb-ldb
+}