Natanael Copa 9b70ec32d1 testing/lua-cjson: new aport
fast JSON parsing and encoding support for Lua
http://www.kyne.com.au/~mark/software/lua-cjson.php
2011-12-12 11:52:28 +01:00

38 lines
808 B
Plaintext

# 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"