summaryrefslogtreecommitdiff
path: root/community/lua-lzlib/PKGBUILD
blob: 2d31c5c63db60914a559fbecf4871e578ee1dab6 (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
# Contributor: Anders Bergh <anders1@gmail.com>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=lua-lzlib
pkgver=0.4_work2
pkgrel=4
pkgdesc="Lua interface to zlib"
arch=('i686' 'x86_64')
url="http://luaforge.net/projects/lzlib/"
license=('custom')
depends=(lua zlib)
# LuaForge urls have to be updated manually (the ID is different)
source=(http://luaforge.net/frs/download.php/3826/lzlib-0.4-work2.tar.gz
        license.txt)
md5sums=('9d29ec26d3ccbd86ea4d95dcc602911a'
         'fc22ecccadddd8ad646aca9c5eb7d23a')
build() {
	cd ${srcdir}/lzlib-${pkgver/_/-}

	make || return 1
}

package() {
	cd ${srcdir}/lzlib-${pkgver/_/-}

	install -Dm644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
	install -Dm755 zlib.so ${pkgdir}/usr/lib/lua/5.1/zlib.so || return 1
	install -Dm644 gzip.lua ${pkgdir}/usr/share/lua/5.1/gzip.lua || return 1
}