summaryrefslogtreecommitdiff
path: root/community/luafilesystem
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-12 02:49:40 -0800
committerroot <root@rshg054.dnsready.net>2012-12-12 02:49:40 -0800
commit6768c115af3c5f0772bcf7b02f34a88a880876c0 (patch)
treecf59712968581c230363f5604ad8f253cc0b5d87 /community/luafilesystem
parentab94338181959432cf0046ce0a9643307dab9366 (diff)
Wed Dec 12 02:43:53 PST 2012
Diffstat (limited to 'community/luafilesystem')
-rw-r--r--community/luafilesystem/PKGBUILD36
1 files changed, 27 insertions, 9 deletions
diff --git a/community/luafilesystem/PKGBUILD b/community/luafilesystem/PKGBUILD
index fb7abe438..987da03c9 100644
--- a/community/luafilesystem/PKGBUILD
+++ b/community/luafilesystem/PKGBUILD
@@ -1,28 +1,46 @@
-# $Id: PKGBUILD 78389 2012-10-17 16:41:35Z bpiotrowski $
+# $Id: PKGBUILD 81115 2012-12-12 00:47:40Z eric $
# Maintainer: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: Paulo Matias <matiasΘarchlinux-br·org>
# Contributor: Anders Bergh <anders1@gmail.com>
-pkgname=luafilesystem
+pkgbase=luafilesystem
+pkgname=(lua-filesystem lua51-filesystem)
pkgver=1.6.2
pkgrel=1
pkgdesc='File System Library for the Lua Programming Language'
arch=('i686' 'x86_64')
url='http://www.keplerproject.org/luafilesystem/'
license=('MIT')
-depends=('lua')
-source=(http://github.com/downloads/keplerproject/$pkgname/$pkgname-$pkgver.tar.gz
+replaces=(luafilesystem)
+conflicts=(luafilesystem)
+makedepends=(lua lua51)
+source=(http://github.com/downloads/keplerproject/$pkgbase/$pkgbase-$pkgver.tar.gz
LICENSE)
md5sums=('4e7ec93678c760c4e42cea7d28aafa13'
'beb2b58c4b5c2782304a5b0267a5651b')
build() {
- cd $srcdir/$pkgname-$pkgver
- make PREFIX=$pkgdir/usr
+ 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() {
- cd $srcdir/$pkgname-$pkgver
- make PREFIX=$pkgdir/usr install
+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')
+
+ 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
}