diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-12 11:52:08 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-12-12 11:52:28 +0100 |
commit | 9b70ec32d12fb853a39d1612a75d96c1065c038b (patch) | |
tree | 2eb0b28ef16db285571cc29711d9094f9cf1e383 /testing/lua-cjson | |
parent | 9be6029e4fa8d192c99b57f0f590c2018891c73b (diff) | |
download | aports-9b70ec32d12fb853a39d1612a75d96c1065c038b.tar.bz2 aports-9b70ec32d12fb853a39d1612a75d96c1065c038b.tar.xz |
testing/lua-cjson: new aport
fast JSON parsing and encoding support for Lua
http://www.kyne.com.au/~mark/software/lua-cjson.php
Diffstat (limited to 'testing/lua-cjson')
-rw-r--r-- | testing/lua-cjson/APKBUILD | 37 |
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" |