blob: a846c9337f8538970c5db44ebfc3e3fe310e62a6 (
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=lua-ejdb
pkgver=1.2.3
pkgrel=0
pkgdesc="EJDB Lua binding for Lua 5.1"
url="https://github.com/Softmotions/ejdb-lua"
arch="all"
license="GPLv2"
depends="lua5.1-inspect"
depends_dev=""
makedepends="$depends_dev lua5.1-dev ejdb-dev"
install=""
subpackages=""
source="http://dev.alpinelinux.org/archive/lua-ejdb/lua-ejdb-$pkgver.tar.gz
unbundle-inspect.patch"
_builddir="$srcdir/ejdb-lua-master"
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"
${CC:-gcc} $CFLAGS $(pkg-config --cflags libejdb) -shared -fPIC -o \
luaejdb.so luaejdb.c luabson.c $(pkg-config --libs libejdb)
}
package() {
cd "$_builddir"
install -Dm644 luaejdb.so \
"$pkgdir"/usr/lib/lua/5.1/luaejdb.so || return 1
install -Dm644 ejdb.lua \
"$pkgdir"/usr/share/lua/5.1/ejdb.lua || return 1
}
md5sums="d2295fd8aa3e5bc1188ee261a8645a66 lua-ejdb-1.2.3.tar.gz
6ffcbd12d1e97b6dc53b29e1f349396b unbundle-inspect.patch"
sha256sums="75866565110c0c7e3566794b01a79394179b24685fd89c28f7ca93e651435404 lua-ejdb-1.2.3.tar.gz
da4f1d9b0f9825ba5a832c572d3a3cd5a3e1a45cd91dc4628bdd1f36c4caf8f9 unbundle-inspect.patch"
sha512sums="d1fc7f2051fdf95a366f140d0f17e4552398138b25f580292bd1cbe2c4d1a373297fb003f103e5703bb296290ca9ad748175cff32ee3c5e1473fd6d00b23f524 lua-ejdb-1.2.3.tar.gz
de4a79222358e368e740c3c41208ea6562212093e0e214153f137bd1a82ed99623cdc3037094dee713d75ea680a4a43f1c9318fcb4288c78ca4926acff4df386 unbundle-inspect.patch"
|