[arch-commits] Commit in lua-bitop/trunk (PKGBUILD)
Anatol Pomozov
anatolik at archlinux.org
Tue May 5 15:32:19 UTC 2015
Date: Tuesday, May 5, 2015 @ 17:32:19
Author: anatolik
Revision: 132804
upgpkg: lua-bitop 1.0.2-6
- add lua5.2 library
- BitOp has not been ported to lua 5.3 (yet) so do not create lua-bitop package. Only lua51-bitop and lua52-bitop packages are created now.
Modified:
lua-bitop/trunk/PKGBUILD
----------+
PKGBUILD | 28 +++++++++++++++++++++-------
1 file changed, 21 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-05-05 15:20:49 UTC (rev 132803)
+++ PKGBUILD 2015-05-05 15:32:19 UTC (rev 132804)
@@ -4,13 +4,14 @@
# Contributor: Lucas Hermann Negri <kkndrox at gmail.com>
pkgbase=lua-bitop
-pkgname=(lua-bitop lua51-bitop)
+# BitOp has not been ported to Lua5.3 so no lua-bitop package
+pkgname=(lua51-bitop lua52-bitop)
pkgver=1.0.2
-pkgrel=5
+pkgrel=6
pkgdesc='C extension adding bitwise operations on numbers'
arch=('x86_64' 'i686')
url='http://bitop.luajit.org/'
-makedepends=('lua' 'lua51')
+makedepends=('lua' 'lua51' 'lua52')
source=("http://bitop.luajit.org/download/LuaBitOp-$pkgver.tar.gz")
md5sums=('d0c1080fe0c844e8477279668e2d0d06')
license=('MIT')
@@ -17,13 +18,18 @@
build() {
cp -a "LuaBitOp-$pkgver" "LuaBitOp51-$pkgver"
+ cp -a "LuaBitOp-$pkgver" "LuaBitOp52-$pkgver"
+ # msg2 'Building with lua 5.3'
+ # cd "LuaBitOp-$pkgver"
+ # make INCLUDES=' -I/usr/include' LUA='lua'
+
msg2 'Building with lua 5.2'
- cd "LuaBitOp-$pkgver"
- make INCLUDES=' -I/usr/include' LUA='lua'
+ cd "$srcdir/LuaBitOp52-$pkgver"
+ make INCLUDES=' -I/usr/include/lua5.2' LUA='lua5.2'
msg2 'Building with lua 5.1'
- cd "../LuaBitOp51-$pkgver"
+ cd "$srcdir/LuaBitOp51-$pkgver"
make INCLUDES=' -I/usr/include/lua5.1' LUA='lua5.1'
}
@@ -31,7 +37,7 @@
depends=('lua')
cd "LuaBitOp-$pkgver"
- install -Dm 644 bit.so "$pkgdir/usr/lib/lua/5.2/bit.so"
+ install -Dm 644 bit.so "$pkgdir/usr/lib/lua/5.3/bit.so"
install -dm 755 "$pkgdir/usr/share/licenses/$pkgname"
ln -s '../lua/LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
@@ -47,4 +53,12 @@
ln -s '../lua51/LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+package_lua52-bitop() {
+ depends=('lua52')
+
+ cd "LuaBitOp52-$pkgver"
+ install -Dm 644 bit.so "$pkgdir/usr/lib/lua/5.2/bit.so"
+ install -dm 755 "$pkgdir/usr/share/licenses/$pkgname"
+ ln -s '../lua51/LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list