summaryrefslogtreecommitdiff
path: root/community/luabitop
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/luabitop
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/luabitop')
-rw-r--r--community/luabitop/PKGBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/community/luabitop/PKGBUILD b/community/luabitop/PKGBUILD
new file mode 100644
index 000000000..7dacdad3e
--- /dev/null
+++ b/community/luabitop/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 81388 2012-12-19 13:22:34Z seblu $
+# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>
+# Contributor: Lucas Hermann Negri <kkndrox@gmail.com>
+
+pkgbase=luabitop
+pkgname=(lua-bitop lua51-bitop)
+pkgver=1.0.2
+pkgrel=2
+pkgdesc='C extension adding bitwise operations on numbers'
+arch=(i686 x86_64)
+url='http://bitop.luajit.org/index.html'
+makedepends=('lua' 'lua51')
+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 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_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')
+ conflicts=('luabitop')
+ replaces=('luabitop')
+ 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: