lua-lpeg and lua-filesystem: imported as new dep of corsixth

This commit is contained in:
gnastyle 2016-06-11 17:59:03 +02:00
parent f2c2dbf040
commit 8abe9a684a
4 changed files with 78 additions and 0 deletions

21
lua-filesystem/LICENSE Normal file
View File

@ -0,0 +1,21 @@
Copyright (C) 2004-2007 The Kepler Project.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

25
lua-filesystem/PKGBUILD Normal file
View File

@ -0,0 +1,25 @@
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
}

7
lua-lpeg/LICENSE Normal file
View File

@ -0,0 +1,7 @@
Copyright © 2008 Lua.org, PUC-Rio.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

25
lua-lpeg/PKGBUILD Normal file
View File

@ -0,0 +1,25 @@
pkgname='lua-lpeg'
_pkgname=lpeg
pkgver=1.0.0
pkgrel=1
pkgdesc='Pattern-matching library for Lua'
arch=('x86_64')
url='http://www.inf.puc-rio.br/~roberto/lpeg'
license=('MIT')
depends=('lua')
source=(http://www.inf.puc-rio.br/~roberto/$_pkgname/$_pkgname-$pkgver.tar.gz
LICENSE)
sha1sums=('64a0920c9243b624a277c987d2219b6c50c43971'
'e471a511997528dd080d2997580499c37d06111a')
build() {
cd $_pkgname-$pkgver
make LUADIR=/usr/include
}
package() {
cd $_pkgname-$pkgver
install -Dm755 $_pkgname.so "$pkgdir"/usr/lib/lua/5.1/$_pkgname.so
install -Dm644 re.lua "$pkgdir"/usr/share/lua/5.1/re.lua
install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}