Date: Thursday, July 9, 2020 @ 13:43:53 Author: daurnimator Revision: 661823
archrelease: copy trunk to community-staging-x86_64 Added: lua-filesystem/repos/community-staging-x86_64/ lua-filesystem/repos/community-staging-x86_64/LICENSE (from rev 661822, lua-filesystem/trunk/LICENSE) lua-filesystem/repos/community-staging-x86_64/PKGBUILD (from rev 661822, lua-filesystem/trunk/PKGBUILD) ----------+ LICENSE | 22 ++++++++++++++++++++++ PKGBUILD | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) Copied: lua-filesystem/repos/community-staging-x86_64/LICENSE (from rev 661822, lua-filesystem/trunk/LICENSE) =================================================================== --- community-staging-x86_64/LICENSE (rev 0) +++ community-staging-x86_64/LICENSE 2020-07-09 13:43:53 UTC (rev 661823) @@ -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. + Copied: lua-filesystem/repos/community-staging-x86_64/PKGBUILD (from rev 661822, lua-filesystem/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-07-09 13:43:53 UTC (rev 661823) @@ -0,0 +1,56 @@ +# Maintainer: Daurnimator <daurnima...@archlinux.org> +# Contributor: Sergej Pupykin <arch+...@p5n.pp.ru> +# Contributor: Bartłomiej Piotrowski <nos...@bpiotrowski.pl> +# Contributor: Chris Brannon <cmbranno...@gmail.com> +# Contributor: Paulo Matias <matiasΘarchlinux-br·org> +# Contributor: Anders Bergh <ande...@gmail.com> + +pkgbase=lua-filesystem +pkgname=(lua-filesystem lua51-filesystem lua52-filesystem) +pkgver=1.8.0 +_tag=${pkgver//./_} +pkgrel=2 +pkgdesc='File System Library for the Lua Programming Language' +arch=('x86_64') +url='http://keplerproject.github.io/luafilesystem/' +license=('MIT') +makedepends=('lua' 'lua51' 'lua52' 'lua53') +source=("$pkgbase-${_tag}.tar.gz::https://github.com/keplerproject/luafilesystem/archive/v${_tag}.tar.gz") +sha256sums=('16d17c788b8093f2047325343f5e9b74cccb1ea96001e45914a58bbae8932495') + +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 + + cp -a luafilesystem-${_tag} luafilesystem-${_tag}-53 + make -C luafilesystem-${_tag}-53 PREFIX=/usr LIB_OPTION="-shared ${LDFLAGS}" LUA_VERSION=5.3 + + make -C luafilesystem-${_tag} PREFIX=/usr LIB_OPTION="-shared ${LDFLAGS}" LUA_VERSION=5.4 +} + +package_lua-filesystem() { + cd luafilesystem-${_tag} + make DESTDIR="$pkgdir" PREFIX=/usr LUA_VERSION=5.4 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 +} + +package_lua53-filesystem() { + cd luafilesystem-${_tag}-53 + make DESTDIR="$pkgdir" PREFIX=/usr LUA_VERSION=5.3 install + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE +}