From 7a3e4c358c16acac932cb198bf6783cdc0ceb216 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Wed, 16 Dec 2015 10:09:47 +0100 Subject: testing/ejdb: new aport --- testing/ejdb/APKBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 testing/ejdb/APKBUILD (limited to 'testing/ejdb') diff --git a/testing/ejdb/APKBUILD b/testing/ejdb/APKBUILD new file mode 100644 index 0000000000..4adc7b58f7 --- /dev/null +++ b/testing/ejdb/APKBUILD @@ -0,0 +1,49 @@ +# Contributor: Carlo Landmeter +# Maintainer: +pkgname=ejdb +pkgver=1.2.10 +pkgrel=0 +pkgdesc="Embedded JSON Database engine" +url="http://ejdb.org/" +arch="all" +license="GPL" +depends="" +depends_dev="" +makedepends="cmake $depends_dev zlib-dev" +install="" +subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" +source="ejdb-$pkgver.tar.gz::https://github.com/Softmotions/ejdb/archive/v$pkgver.tar.gz" + +_builddir="$srcdir"/ejdb-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + mkdir build && cd build + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DBUILD_SHARED_LIBS=True \ + -DCMAKE_BUILD_TYPE=Release \ + -DBUILD_SAMPLES=OFF \ + -DPACKAGE_TGZ=OFF \ + ../ || return 1 + make || return 1 +} + +package() { + cd "$_builddir"/build + make DESTDIR="${pkgdir}" install || return 1 +} + +md5sums="85a825c1c880a51a869fadba11a7e52a ejdb-1.2.10.tar.gz" +sha256sums="3a6d4a487e02c05dd67e72a77ee6082fbb1f5a19d4f7f15d14e1c891bbfe520e ejdb-1.2.10.tar.gz" +sha512sums="84c864ec89714eed32256d7301f0ec525c59595f5ae1f41e3bb05b5fb143286308cc6a26de955603f990b1a46aaae2a5fa54c4c42baef91fab75494d0dd3b83e ejdb-1.2.10.tar.gz" -- cgit v1.2.3