summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1cc72ebe4539b24e0e869bd066a84067af3041ad (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
36
37
38
39
40
# Maintainer: Carlo Cabanilla <carlo.cabanilla@gmail.com>
pkgname=(lua-luafilesystem lua52-luafilesystem lua51-luafilesystem)
pkgver=1.6.3
_tag=v_${pkgver//./_}
pkgrel=2
pkgdesc="A lua library to access the underlying directory structure and file attributes"
arch=(i686 x86_64)
url="http://keplerproject.github.io/luafilesystem/"
license=('MIT')
depends=(lua)
makedepends=(make gcc)
install=
changelog=
source=("luafilesystem-${_tag}.tar.gz::https://github.com/keplerproject/luafilesystem/archive/${_tag}.tar.gz")
md5sums=('d0552c7e5a082f5bb2865af63fb9dc95')

build() {
	cd "luafilesystem-${_tag}"
	make
}

package() {
	_luaver=$1
	cd "luafilesystem-${_tag}"
	export PREFIX=${pkgdir}/usr
	export LUA_LIBDIR=${PREFIX}/lib/lua/${_luaver}
	make -e install
}

package_lua-luafilesystem() {
	package 5.3
}

package_lua52-luafilesystem() {
	package 5.2
}

package_lua51-luafilesystem() {
	package 5.1
}