summaryrefslogtreecommitdiff
path: root/community/luabitop
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/luabitop
parentab94338181959432cf0046ce0a9643307dab9366 (diff)
Wed Dec 12 02:43:53 PST 2012
Diffstat (limited to 'community/luabitop')
-rw-r--r--community/luabitop/PKGBUILD29
1 files changed, 24 insertions, 5 deletions
diff --git a/community/luabitop/PKGBUILD b/community/luabitop/PKGBUILD
index 9e8a83683..ee67163f4 100644
--- a/community/luabitop/PKGBUILD
+++ b/community/luabitop/PKGBUILD
@@ -1,26 +1,45 @@
-# $Id: PKGBUILD 73728 2012-07-14 17:39:06Z seblu $
+# $Id: PKGBUILD 81112 2012-12-12 00:47:37Z eric $
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
# Contributor: Lucas Hermann Negri <kkndrox@gmail.com>
-pkgname=luabitop
+pkgbase=luabitop
+pkgname=(lua-bitop lua51-bitop)
pkgver=1.0.2
pkgrel=1
pkgdesc='C extension adding bitwise operations on numbers'
arch=(i686 x86_64)
url='http://bitop.luajit.org/index.html'
-depends=('lua')
+makedepends=('lua' 'lua51')
+conflicts=('luabitop')
+replaces=('luabitop')
source=("http://bitop.luajit.org/download/LuaBitOp-$pkgver.tar.gz")
md5sums=('d0c1080fe0c844e8477279668e2d0d06')
license=('MIT')
build() {
+ cp -a LuaBitOp-$pkgver LuaBitOp51-$pkgver
+ msg2 'Building with lua 5.2'
cd LuaBitOp-$pkgver
- make
+ make INCLUDES=' -I/usr/include' LUA='lua'
+ msg2 'Building with lua 5.1'
+ cd ../LuaBitOp51-$pkgver
+ make INCLUDES=' -I/usr/include/lua5.1' LUA='lua5.1'
}
-package() {
+package_lua-bitop() {
+ depends=('lua')
cd LuaBitOp-$pkgver
+ install -Dm 644 bit.so "$pkgdir/usr/lib/lua/5.2/bit.so"
+ install -dm 755 "$pkgdir/usr/share/licenses/$pkgname"
+ ln -s '../lua/COPYRIGHT' "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
+}
+
+package_lua51-bitop() {
+ depends=('lua51')
+ cd LuaBitOp51-$pkgver
install -Dm 644 bit.so "$pkgdir/usr/lib/lua/5.1/bit.so"
+ install -dm 755 "$pkgdir/usr/share/licenses/$pkgname"
+ ln -s '../lua51/COPYRIGHT' "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
}
# vim:set ts=2 sw=2 et: