summaryrefslogtreecommitdiff
path: root/repo/leveldb
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
committerdavidovski <david@davidovski.xyz>2022-06-15 20:02:02 +0100
commitd2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch)
tree684a17eebf446aa1adab1097616f1882c8d51568 /repo/leveldb
parentd1fc3393cca72e8e432f827f7624e38734fad6dc (diff)
added deps for qemu
Diffstat (limited to 'repo/leveldb')
-rw-r--r--repo/leveldb/leveldb.xibuild32
1 files changed, 32 insertions, 0 deletions
diff --git a/repo/leveldb/leveldb.xibuild b/repo/leveldb/leveldb.xibuild
new file mode 100644
index 0000000..b5f4757
--- /dev/null
+++ b/repo/leveldb/leveldb.xibuild
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+NAME="leveldb"
+DESC="A fast and lightweight key/value database library by Google"
+
+MAKEDEPS=" cmake snappy"
+
+PKG_VER=1.22
+SOURCE="https://github.com/google/leveldb/archive/$PKG_VER.tar.gz"
+
+build() {
+ mkdir build && cd build
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=MinSizeRel \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DLEVELDB_BUILD_TESTS=ON \
+ -DLEVELDB_INSTALL=ON \
+ -DBUILD_SHARED_LIBS=ON
+ make
+}
+
+check() {
+ make test
+}
+
+package() {
+ make DESTDIR="$PKG_DEST" install
+ mkdir -p "$PKG_DEST"/usr/share/doc
+ cp -a ../doc "$PKG_DEST"/usr/share/doc/leveldb
+}
+