From f29d569cd33a73da5ad675f43a34ad53c5cc9bc6 Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 2 Feb 2023 14:10:02 +0000 Subject: Work --- skip/leveldb/leveldb.xibuild | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 skip/leveldb/leveldb.xibuild (limited to 'skip/leveldb') diff --git a/skip/leveldb/leveldb.xibuild b/skip/leveldb/leveldb.xibuild new file mode 100644 index 0000000..d3805c9 --- /dev/null +++ b/skip/leveldb/leveldb.xibuild @@ -0,0 +1,28 @@ +#!/bin/sh + +NAME="leveldb" +DESC="A fast and lightweight key/value database library by Google" + +MAKEDEPS="cmake snappy" + +PKG_VER=1.23 +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 +} + +package() { + make DESTDIR="$PKG_DEST" install + mkdir -p "$PKG_DEST"/usr/share/doc + cp -a ../doc "$PKG_DEST"/usr/share/doc/leveldb +} + -- cgit v1.2.1