aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/lua-cjson/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/testing/lua-cjson/APKBUILD b/testing/lua-cjson/APKBUILD
new file mode 100644
index 0000000000..2126d959a4
--- /dev/null
+++ b/testing/lua-cjson/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=lua-cjson
+pkgver=1.0.4
+pkgrel=0
+pkgdesc="fast JSON parsing and encoding support for Lua"
+url="http://www.kyne.com.au/~mark/software/lua-cjson.php"
+arch="all"
+license="MIT"
+depends=""
+makedepends="lua-dev"
+install=""
+subpackages=""
+source="http://www.kyne.com.au/~mark/software/lua-cjson-$pkgver.tar.gz"
+
+_builddir="$srcdir"/lua-cjson-$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"
+ make CFLAGS_EXTRA= PREFIX=/usr|| return 1
+}
+
+package() {
+ cd "$_builddir"
+ make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="9b04196a37f724c7530794248f8e1f96 lua-cjson-1.0.4.tar.gz"