summaryrefslogtreecommitdiffstats
path: root/main/lua-zlib/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/lua-zlib/APKBUILD')
-rw-r--r--main/lua-zlib/APKBUILD35
1 files changed, 35 insertions, 0 deletions
diff --git a/main/lua-zlib/APKBUILD b/main/lua-zlib/APKBUILD
new file mode 100644
index 000000000..6f319b486
--- /dev/null
+++ b/main/lua-zlib/APKBUILD
@@ -0,0 +1,35 @@
+# Contributor:
+# Maintainer:
+pkgname=lua-zlib
+_name=lzlib
+pkgver=0.4
+_ver=$pkgver-work2
+pkgrel=0
+pkgdesc="Lua bindings to the ZLib compression library"
+url="http://luaforge.net/projects/lzlib/"
+license="MIT"
+depends="lua"
+makedepends="lua-dev zlib-dev"
+install=
+subpackages=
+source="http://luaforge.net/frs/download.php/3826/lzlib-$_ver.tar.gz"
+
+_builddir="$srcdir"/$_name-$_ver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ install -Dm755 zlib.so "$pkgdir"/usr/lib/lua/5.1/zlib.so
+ install -Dm644 gzip.lua "$pkgdir"/usr/share/lua/5.1/gzip.lua
+}
+
+md5sums="9d29ec26d3ccbd86ea4d95dcc602911a lzlib-0.4-work2.tar.gz"