diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-09-13 06:39:34 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-09-13 06:39:34 +0000 |
commit | 832cb0452a8a102d44df7fadc344c5fb871d008a (patch) | |
tree | fee584f28875950c47da0c39972832f9a6d633da /testing/lua-zip | |
parent | 6a8d42b88c401a9dadf66c3529daadc032af184c (diff) | |
download | aports-832cb0452a8a102d44df7fadc344c5fb871d008a.tar.bz2 aports-832cb0452a8a102d44df7fadc344c5fb871d008a.tar.xz |
testing/lua-zip: new aport
Lua extension library used to read files stored inside zip files
http://luaforge.net/projects/luazip/
Diffstat (limited to 'testing/lua-zip')
-rw-r--r-- | testing/lua-zip/APKBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/lua-zip/APKBUILD b/testing/lua-zip/APKBUILD new file mode 100644 index 0000000000..ca5a389cd8 --- /dev/null +++ b/testing/lua-zip/APKBUILD @@ -0,0 +1,39 @@ +# Contributor: Mika Havela <mika.havela@gmail.com> +# Maintainer: Mika Havela <mika.havela@gmail.com> +pkgname=lua-zip +pkgver="1.2.3" +pkgrel=0 +pkgdesc="Lua extension library used to read files stored inside zip files" +url="http://luaforge.net/projects/luazip/" +arch="all" +license="MIT" +depends="lua" +makedepends="lua-dev zziplib-dev" +install="" +subpackages="" +source="http://archive.ubuntu.com/ubuntu/pool/universe/l/lua-zip/lua-zip_${pkgver}.orig.tar.gz" + +_builddir="$srcdir/luazip-$pkgver" +prepare() { + cd "$_builddir" + sed -i -e '/LUA_VERSION_NUM/d' config + 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="$CFLAGS" CC="${CC:-gcc}" +} + +package() { + cd "$_builddir" + local _lua_libdir="$(pkg-config --variable=INSTALL_CMOD lua)" + make LUA_LIBDIR="${pkgdir}${_lua_libdir}" \ + install || return 1 +} + +md5sums="8129ba93a8df6ebd324fee9adca23fae lua-zip_1.2.3.orig.tar.gz" |