blob: b448389ee623f6ce3f73e4861f24b13fc3774c8b (
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
41
42
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# Contributor: Carlo Cabanilla <carlo.cabanilla@gmail.com>
pkgname=(lua-luafilesystem lua52-luafilesystem lua51-luafilesystem)
pkgver=1.7.0
_tag=${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/v${_tag}.tar.gz")
sha256sums=('854ef99b6a4eb48af00c304e26fc4429094a8612003a7a81ba22014f32e85db3')
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
}
|