aboutsummaryrefslogtreecommitdiffstats
path: root/main/lua-zlib/APKBUILD
blob: d37adab39db27ba90998ad7315b504436ef1129a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: 
# Maintainer: 
pkgname=lua-zlib
_name=lzlib
pkgver=0.4
_ver=$pkgver-work2
pkgrel=1
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"