summaryrefslogtreecommitdiff
path: root/community/luafilesystem
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/luafilesystem
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/luafilesystem')
-rw-r--r--community/luafilesystem/LICENSE22
-rw-r--r--community/luafilesystem/PKGBUILD46
2 files changed, 68 insertions, 0 deletions
diff --git a/community/luafilesystem/LICENSE b/community/luafilesystem/LICENSE
new file mode 100644
index 000000000..53f2abebc
--- /dev/null
+++ b/community/luafilesystem/LICENSE
@@ -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.
+
diff --git a/community/luafilesystem/PKGBUILD b/community/luafilesystem/PKGBUILD
new file mode 100644
index 000000000..d4237e35a
--- /dev/null
+++ b/community/luafilesystem/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 81391 2012-12-19 13:27:48Z seblu $
+# Maintainer: Chris Brannon <cmbrannon79@gmail.com>
+# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
+# Contributor: Anders Bergh <anders1@gmail.com>
+
+pkgbase=luafilesystem
+pkgname=(lua-filesystem lua51-filesystem)
+pkgver=1.6.2
+pkgrel=2
+pkgdesc='File System Library for the Lua Programming Language'
+arch=('i686' 'x86_64')
+url='http://www.keplerproject.org/luafilesystem/'
+license=('MIT')
+makedepends=(lua lua51)
+source=(http://github.com/downloads/keplerproject/$pkgbase/$pkgbase-$pkgver.tar.gz
+ LICENSE)
+md5sums=('4e7ec93678c760c4e42cea7d28aafa13'
+ 'beb2b58c4b5c2782304a5b0267a5651b')
+
+build() {
+ msg2 "Building $pkgbase with lua 5.1"
+ cp -a $pkgbase-$pkgver $pkgbase-$pkgver-51
+ cd $pkgbase-$pkgver-51
+ make LUA_INC=/usr/include/lua5.1
+ msg2 "Building $pkgbase with lua 5.2"
+ cd "$srcdir/$pkgbase-$pkgver"
+ make
+}
+
+package_lua-filesystem() {
+ depends=('lua')
+
+ cd $pkgbase-$pkgver
+ make PREFIX=$pkgdir/usr LUA_LIBDIR='$(PREFIX)/lib/lua/5.2' install
+ install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_lua51-filesystem() {
+ depends=('lua51')
+ conflicts=('luafilesystem')
+ replaces=('luafilesystem')
+
+ cd $pkgbase-$pkgver-51
+ make PREFIX=$pkgdir/usr LUA_LIBDIR='$(PREFIX)/lib/lua/5.1' install
+ install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+}