desktop/lua-filesystem/PKGBUILD
Adrian Chaves (Gallaecio) c04250fe2e lua 5.3.3
Packages that do not support latest Lua have been moved to the CCR. If requested,
we could package lua52 and lua51 in the official repoitories to support popular
packages that have not yet caught up with latest Lua.
2016-09-21 23:49:54 +02:00

26 lines
808 B
Bash

pkgname=lua-filesystem
_pkgname=luafilesystem
pkgver=1.6.3
_tag=v_${pkgver//./_}
pkgrel=2
pkgdesc='File System Library for the Lua Programming Language'
arch=('x86_64')
url='http://www.keplerproject.org/luafilesystem/'
license=('MIT')
depends=('lua')
#source=(http://github.com/downloads/keplerproject/$pkgbase/$pkgbase-$pkgver.tar.gz
source=(luafilesystem-$_tag.tar.gz::https://github.com/keplerproject/$_pkgname/archive/$_tag.tar.gz
LICENSE)
sha1sums=('72bc1415e7eefb339742538505675c59bd69e6bb'
'8a797dd4280f1628f0e4434fc37c31d9c19382bc')
build() {
cd $_pkgname-$_tag
make LUA_INC=/usr/include/lua5.1
}
package() {
cd $_pkgname-$_tag
make PREFIX="$pkgdir"/usr LUA_LIBDIR='$(PREFIX)/lib/lua/5.1' install
install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}