aboutsummaryrefslogtreecommitdiffstats
path: root/testing/ejdb
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-12-16 10:09:47 +0100
committerCarlo Landmeter <clandmeter@gmail.com>2015-12-16 10:09:47 +0100
commit7a3e4c358c16acac932cb198bf6783cdc0ceb216 (patch)
treee02615f8353d84959c17fcf06c5a11c1ef83e36a /testing/ejdb
parent00880c74943bc337f321595ee51652127da58c9f (diff)
downloadaports-7a3e4c358c16acac932cb198bf6783cdc0ceb216.tar.bz2
aports-7a3e4c358c16acac932cb198bf6783cdc0ceb216.tar.xz
testing/ejdb: new aport
Diffstat (limited to 'testing/ejdb')
-rw-r--r--testing/ejdb/APKBUILD49
1 files changed, 49 insertions, 0 deletions
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 <clandmeter@gmail.com>
+# 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"