mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 10:32:13 +08:00
26 lines
808 B
Bash
26 lines
808 B
Bash
|
pkgname=lua-filesystem
|
||
|
_pkgname=luafilesystem
|
||
|
pkgver=1.6.3
|
||
|
_tag=v_${pkgver//./_}
|
||
|
pkgrel=1
|
||
|
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
|
||
|
}
|