[arch-commits] Commit in lua-bitop/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Sat Sep 2 20:34:29 UTC 2017
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
===================================================================
--- PKGBUILD 2017-09-02 20:32:04 UTC (rev 255584)
+++ PKGBUILD 2017-09-02 20:34:28 UTC (rev 255585)
@@ -1,37 +1,28 @@
# $Id$
-# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
# Contributor: Sébastien Luttringer
# Contributor: Lucas Hermann Negri <kkndrox at gmail.com>
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:
More information about the arch-commits
mailing list