blob: 4adc7b58f7391b3cbeb945c569b935be9197093d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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"
|