[arch-commits] Commit in lua-say/trunk (PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Tue Aug 23 19:23:08 UTC 2022
Date: Tuesday, August 23, 2022 @ 19:23:08
Author: alerque
Revision: 1275906
upgpkg: lua-say 1.4.0-1
Modified:
lua-say/trunk/PKGBUILD
----------+
PKGBUILD | 50 +++++++++++++++++++++-----------------------------
1 file changed, 21 insertions(+), 29 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-08-23 19:11:22 UTC (rev 1275905)
+++ PKGBUILD 2022-08-23 19:23:08 UTC (rev 1275906)
@@ -1,11 +1,12 @@
# Maintainer: Daurnimator <daurnimator at archlinux.org>
pkgname=('lua-say' 'lua51-say' 'lua52-say' 'lua53-say')
-pkgver=1.3
-pkgrel=7
+pkgver=1.4.0
+pkgrel=1
+_rockrel=1
pkgdesc='Lua string hashing library, useful for internationalization'
arch=('any')
-url='https://github.com/Olivine-Labs/say'
+url='https://github.com/lunarmodules/say'
license=('MIT')
makedepends=('luarocks'
# https://github.com/luarocks/luarocks/issues/1275
@@ -13,47 +14,38 @@
'lua52'
'lua53'
'lua')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/Olivine-Labs/say/archive/v$pkgver-1.tar.gz")
-sha256sums=('23e8cd378bb4ab1693279100a785acb2246418e3570b7de7d995b5847b3507ca')
+_archive="say-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('b81e7519ebdff47e1aee69b2a53eda201824cdd7a15e743ff322b8e4fde350cb')
build() {
- cd "say-$pkgver-1"
-
+ cd "$_archive"
for v in 5.1 5.2 5.3 5.4; do
mkdir -p "$v/"
- luarocks make --pack-binary-rock --lua-version="$v" --deps-mode=none say-"$pkgver"-1.rockspec
- mv say-"$pkgver"-1.*.rock "$v/"
+ luarocks make --pack-binary-rock --lua-version="$v" --deps-mode=none rockspecs/$_archive-$_rockrel.rockspec
+ mv "$_archive-$_rockrel".*.rock "$v/"
done
}
+_package() {
+ pkgdesc+=" for Lua $1"
+ cd "$_archive"
+ luarocks install --lua-version="$1" --tree="$pkgdir/usr/" --deps-mode=none --no-manifest "$1"/*.rock
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}
+
package_lua51-say() {
- pkgdesc="$pkgdesc for Lua 5.1"
-
- cd "say-$pkgver-1"
- luarocks install --lua-version=5.1 --tree="$pkgdir/usr/" --deps-mode=none --no-manifest 5.1/*.rock
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ _package 5.1
}
package_lua52-say() {
- pkgdesc="$pkgdesc for Lua 5.2"
-
- cd "say-$pkgver-1"
- luarocks install --lua-version=5.2 --tree="$pkgdir/usr/" --deps-mode=none --no-manifest 5.2/*.rock
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ _package 5.2
}
package_lua53-say() {
- pkgdesc="$pkgdesc for Lua 5.3"
-
- cd "say-$pkgver-1"
- luarocks install --lua-version=5.3 --tree="$pkgdir/usr/" --deps-mode=none --no-manifest 5.3/*.rock
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ _package 5.3
}
package_lua-say() {
- pkgdesc="$pkgdesc for Lua 5.4"
-
- cd "say-$pkgver-1"
- luarocks install --lua-version=5.4 --tree="$pkgdir/usr/" --deps-mode=none --no-manifest 5.4/*.rock
- install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ _package 5.4
}
More information about the arch-commits
mailing list