initial import
This commit is contained in:
22
lua-filesystem/LICENSE
Normal file
22
lua-filesystem/LICENSE
Normal file
@@ -0,0 +1,22 @@
|
||||
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.
|
||||
|
||||
42
lua-filesystem/PKGBUILD
Normal file
42
lua-filesystem/PKGBUILD
Normal file
@@ -0,0 +1,42 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgbase=lua-filesystem
|
||||
pkgname=(lua-filesystem lua51-filesystem lua52-filesystem)
|
||||
pkgver=1.8.0
|
||||
_tag=${pkgver//./_}
|
||||
pkgrel=1
|
||||
pkgdesc='File System Library for the Lua Programming Language'
|
||||
arch=('i686' 'x86_64')
|
||||
url='http://keplerproject.github.io/luafilesystem/'
|
||||
license=('Expat')
|
||||
makedepends=('lua' 'lua51' 'lua52')
|
||||
source=("$pkgbase-${_tag}.tar.gz::https://github.com/keplerproject/luafilesystem/archive/v${_tag}.tar.gz")
|
||||
sha512sums=('79d964f13ae43716281dc8521d2f128b22f2261234c443e242b857cfdf621e208bdf4512f8ba710baa113e9b3b71e2544609de65e2c483f569c243a5cf058247')
|
||||
|
||||
build() {
|
||||
cp -a luafilesystem-${_tag} luafilesystem-${_tag}-51
|
||||
make -C luafilesystem-${_tag}-51 PREFIX=/usr LIB_OPTION="-shared ${LDFLAGS}" LUA_VERSION=5.1
|
||||
|
||||
cp -a luafilesystem-${_tag} luafilesystem-${_tag}-52
|
||||
make -C luafilesystem-${_tag}-52 PREFIX=/usr LIB_OPTION="-shared ${LDFLAGS}" LUA_VERSION=5.2
|
||||
|
||||
make -C luafilesystem-${_tag} PREFIX=/usr LIB_OPTION="-shared ${LDFLAGS}" LUA_VERSION=5.3
|
||||
}
|
||||
|
||||
package_lua-filesystem() {
|
||||
cd luafilesystem-${_tag}
|
||||
make DESTDIR="$pkgdir" PREFIX=/usr LUA_VERSION=5.3 install
|
||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
||||
package_lua51-filesystem() {
|
||||
cd luafilesystem-${_tag}-51
|
||||
make DESTDIR="$pkgdir" PREFIX=/usr LUA_VERSION=5.1 install
|
||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
|
||||
package_lua52-filesystem() {
|
||||
cd luafilesystem-${_tag}-52
|
||||
make DESTDIR="$pkgdir" PREFIX=/usr LUA_VERSION=5.2 install
|
||||
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
|
||||
}
|
||||
Reference in New Issue
Block a user