diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-06-02 18:02:59 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-06-02 18:02:59 +0000 |
commit | b7d7e6463401eda3bd05e26c74b355e63345e564 (patch) | |
tree | d340e899cdbb6bbc885cf5f16390bd43a7b48708 /main/lua-cjson/APKBUILD | |
parent | 1c5eeb6a33ab593e22a43bb7b36fe3e1021bf731 (diff) | |
download | aports-b7d7e6463401eda3bd05e26c74b355e63345e564.tar.bz2 aports-b7d7e6463401eda3bd05e26c74b355e63345e564.tar.xz |
main/lua-cjson: moved from testing
Diffstat (limited to 'main/lua-cjson/APKBUILD')
-rw-r--r-- | main/lua-cjson/APKBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/main/lua-cjson/APKBUILD b/main/lua-cjson/APKBUILD new file mode 100644 index 0000000000..2126d959a4 --- /dev/null +++ b/main/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" |