summaryrefslogtreecommitdiff
path: root/community/luabitop
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-12-12 09:40:29 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-12-12 09:40:29 -0300
commiteef796260fb7cc9b81044e43df8f313c3c8e768a (patch)
treedb6c6a07c0da415fe2e68648fbd39473cba2ccd2 /community/luabitop
parent6767b6bbf9829a692c85c3dcd5ee0280982bd252 (diff)
parentef947957a5734ba25be3cdb6595491c816592133 (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/btanks/PKGBUILD community/highlight/PKGBUILD community/luaexpat/PKGBUILD community/luakit/PKGBUILD community/luasec/PKGBUILD community/luasocket/PKGBUILD extra/graphviz/PKGBUILD extra/gvfs/PKGBUILD extra/lua/PKGBUILD extra/openal/PKGBUILD extra/sane/PKGBUILD extra/vim/PKGBUILD extra/vlc/PKGBUILD
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 755ec5ea8..06647f867 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 mips64el)
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: