[arch-commits] Commit in lua-bitop/trunk (LICENSE PKGBUILD)
Daurnimator
daurnimator at archlinux.org
Sat May 9 10:00:07 UTC 2020
Date: Saturday, May 9, 2020 @ 10:00:06
Author: daurnimator
Revision: 625922
improve packaging; rebuild
Added:
lua-bitop/trunk/LICENSE
Modified:
lua-bitop/trunk/PKGBUILD
----------+
LICENSE | 19 +++++++++++++++++++
PKGBUILD | 43 ++++++++++++++-----------------------------
2 files changed, 33 insertions(+), 29 deletions(-)
Added: LICENSE
===================================================================
--- LICENSE (rev 0)
+++ LICENSE 2020-05-09 10:00:06 UTC (rev 625922)
@@ -0,0 +1,19 @@
+Copyright (C) 2008-2012 Mike Pall
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-09 09:48:30 UTC (rev 625921)
+++ PKGBUILD 2020-05-09 10:00:06 UTC (rev 625922)
@@ -1,4 +1,5 @@
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+# Contributor: Alexander F Rødseth <xyproto at archlinux.org>
# Contributor: Sébastien Luttringer
# Contributor: Lucas Hermann Negri <kkndrox at gmail.com>
@@ -5,14 +6,16 @@
pkgbase=lua-bitop
pkgname=(lua51-bitop lua52-bitop)
pkgver=1.0.2
-pkgrel=8
+pkgrel=9
pkgdesc='Bitwise operations on numbers'
arch=('x86_64')
license=('MIT')
url='https://bitop.luajit.org/'
makedepends=('lua51' 'lua52')
-source=("https://bitop.luajit.org/download/LuaBitOp-$pkgver.tar.gz")
-sha256sums=('1207c9293dcd52eb9dca6538d1b87352bd510f4e760938f5048433f7f272ce99')
+source=("https://bitop.luajit.org/download/LuaBitOp-$pkgver.tar.gz"
+ "LICENSE")
+sha256sums=('1207c9293dcd52eb9dca6538d1b87352bd510f4e760938f5048433f7f272ce99'
+ 'dac73bcdefc05b065d36487f43a629684615051973d10f21e0fa4305e8557e5a')
prepare() {
cp -a "LuaBitOp-$pkgver" "LuaBitOp51-$pkgver"
@@ -24,35 +27,17 @@
make -C "LuaBitOp52-$pkgver" INCLUDES=' -I/usr/include/lua5.2' LUA='lua5.2'
}
-package_lua-bitop() {
- depends=('lua')
-
- cd "LuaBitOp-$pkgver"
- 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"
+check() {
+ make -C "LuaBitOp51-$pkgver" LUA='lua5.1' test
+ make -C "LuaBitOp52-$pkgver" LUA='lua5.2' test
}
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/LICENSE"
+ install -Dm 644 "LuaBitOp51-$pkgver/bit.so" "$pkgdir/usr/lib/lua/5.1/bit.so"
+ install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
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"
- install -dm 755 "$pkgdir/usr/share/licenses/$pkgname"
- ln -s '../lua52/LICENSE' "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -Dm 644 "LuaBitOp52-$pkgver/bit.so" "$pkgdir/usr/lib/lua/5.2/bit.so"
+ install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
-
-# vim:ts=2 sw=2 et:
More information about the arch-commits
mailing list