[arch-commits] Commit in lua-bitop/trunk (PKGBUILD)
Date: Saturday, September 2, 2017 @ 20:34:28 Author: arodseth Revision: 255585 upgpkg: lua-bitop 1.0.2-8 Modified: lua-bitop/trunk/PKGBUILD --+ PKGBUILD | 40 1 file changed, 16 insertions(+), 24 deletions(-) Modified: PKGBUILD === --- PKGBUILD2017-09-02 20:32:04 UTC (rev 255584) +++ PKGBUILD2017-09-02 20:34:28 UTC (rev 255585) @@ -1,37 +1,28 @@ # $Id$ -# Maintainer: Alexander Rødseth+# Maintainer: Alexander F Rødseth # Contributor: Sébastien Luttringer # Contributor: Lucas Hermann Negri pkgbase=lua-bitop -# BitOp has not been ported to Lua5.3 so no lua-bitop package -# https://www.freelists.org/post/luajit/Port-bitop-to-53 pkgname=(lua51-bitop lua52-bitop) pkgver=1.0.2 -pkgrel=7 -pkgdesc='C extension adding bitwise operations on numbers' +pkgrel=8 +pkgdesc='Bitwise operations on numbers' arch=('x86_64' 'i686') -url='http://bitop.luajit.org/' +license=('MIT') +url='https://bitop.luajit.org/' makedepends=('lua51' 'lua52') -source=("http://bitop.luajit.org/download/LuaBitOp-$pkgver.tar.gz;) -md5sums=('d0c1080fe0c844e8477279668e2d0d06') -license=('MIT') +source=("https://bitop.luajit.org/download/LuaBitOp-$pkgver.tar.gz;) +sha256sums=('1207c9293dcd52eb9dca6538d1b87352bd510f4e760938f5048433f7f272ce99') -build() { +prepare() { 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 "$srcdir/LuaBitOp52-$pkgver" - make INCLUDES=' -I/usr/include/lua5.2' LUA='lua5.2' - - msg2 'Building with lua 5.1' - cd "$srcdir/LuaBitOp51-$pkgver" - make INCLUDES=' -I/usr/include/lua5.1' LUA='lua5.1' +build() { + make -C "LuaBitOp51-$pkgver" INCLUDES=' -I/usr/include/lua5.1' LUA='lua5.1' + make -C "LuaBitOp52-$pkgver" INCLUDES=' -I/usr/include/lua5.2' LUA='lua5.2' } package_lua-bitop() { @@ -51,7 +42,7 @@ 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/LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + ln -s '../lua51/COPYRIGHT' "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_lua52-bitop() { @@ -62,6 +53,7 @@ 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" + ln -s '../lua52/LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -# vim:set ts=2 sw=2 et: + +# vim:ts=2 sw=2 et:
[arch-commits] Commit in lua-bitop/trunk (PKGBUILD)
Date: Sunday, May 10, 2015 @ 02:58:12 Author: anatolik Revision: 133150 lua52-bitop conflicts with current lua-bitop Modified: lua-bitop/trunk/PKGBUILD --+ PKGBUILD |7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) Modified: PKGBUILD === --- PKGBUILD2015-05-09 22:58:59 UTC (rev 133149) +++ PKGBUILD2015-05-10 00:58:12 UTC (rev 133150) @@ -5,13 +5,14 @@ pkgbase=lua-bitop # BitOp has not been ported to Lua5.3 so no lua-bitop package +# https://www.freelists.org/post/luajit/Port-bitop-to-53 pkgname=(lua51-bitop lua52-bitop) pkgver=1.0.2 -pkgrel=6 +pkgrel=7 pkgdesc='C extension adding bitwise operations on numbers' arch=('x86_64' 'i686') url='http://bitop.luajit.org/' -makedepends=('lua' 'lua51' 'lua52') +makedepends=('lua51' 'lua52') source=(http://bitop.luajit.org/download/LuaBitOp-$pkgver.tar.gz;) md5sums=('d0c1080fe0c844e8477279668e2d0d06') license=('MIT') @@ -55,6 +56,8 @@ package_lua52-bitop() { depends=('lua52') + conflicts=('lua-bitop') + replaces=('lua-bitop') cd LuaBitOp52-$pkgver install -Dm 644 bit.so $pkgdir/usr/lib/lua/5.2/bit.so
[arch-commits] Commit in lua-bitop/trunk (PKGBUILD)
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 === --- PKGBUILD2015-05-05 15:20:49 UTC (rev 132803) +++ PKGBUILD2015-05-05 15:32:19 UTC (rev 132804) @@ -4,13 +4,14 @@ # Contributor: Lucas Hermann Negri kknd...@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:
[arch-commits] Commit in lua-bitop/trunk (PKGBUILD)
Date: Monday, February 9, 2015 @ 22:11:04 Author: arodseth Revision: 127434 upgpkg: lua-bitop 1.0.2-5 Modified: lua-bitop/trunk/PKGBUILD --+ PKGBUILD | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) Modified: PKGBUILD === --- PKGBUILD2015-02-09 20:57:04 UTC (rev 127433) +++ PKGBUILD2015-02-09 21:11:04 UTC (rev 127434) @@ -9,7 +9,7 @@ pkgrel=5 pkgdesc='C extension adding bitwise operations on numbers' arch=('x86_64' 'i686') -url='http://bitop.luajit.org/index.html' +url='http://bitop.luajit.org/' makedepends=('lua' 'lua51') source=(http://bitop.luajit.org/download/LuaBitOp-$pkgver.tar.gz;) md5sums=('d0c1080fe0c844e8477279668e2d0d06') @@ -16,14 +16,14 @@ license=('MIT') build() { - cp -a LuaBitOp-$pkgver LuaBitOp51-$pkgver + cp -a LuaBitOp-$pkgver LuaBitOp51-$pkgver msg2 'Building with lua 5.2' - cd LuaBitOp-$pkgver + cd LuaBitOp-$pkgver make INCLUDES=' -I/usr/include' LUA='lua' msg2 'Building with lua 5.1' - cd ../LuaBitOp51-$pkgver + cd ../LuaBitOp51-$pkgver make INCLUDES=' -I/usr/include/lua5.1' LUA='lua5.1' } @@ -30,7 +30,7 @@ package_lua-bitop() { depends=('lua') - cd LuaBitOp-$pkgver + 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/LICENSE' $pkgdir/usr/share/licenses/$pkgname/LICENSE @@ -41,7 +41,7 @@ conflicts=('luabitop') replaces=('luabitop') - cd LuaBitOp51-$pkgver + 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/LICENSE' $pkgdir/usr/share/licenses/$pkgname/LICENSE