[arch-commits] Commit in lua-say/repos/community-any (PKGBUILD PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Tue Aug 23 19:23:16 UTC 2022


    Date: Tuesday, August 23, 2022 @ 19:23:16
  Author: alerque
Revision: 1275907

archrelease: copy trunk to community-any

Added:
  lua-say/repos/community-any/PKGBUILD
    (from rev 1275906, lua-say/trunk/PKGBUILD)
Deleted:
  lua-say/repos/community-any/PKGBUILD

----------+
 PKGBUILD |  110 ++++++++++++++++++++++++++++---------------------------------
 1 file changed, 51 insertions(+), 59 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-08-23 19:23:08 UTC (rev 1275906)
+++ PKGBUILD	2022-08-23 19:23:16 UTC (rev 1275907)
@@ -1,59 +0,0 @@
-# Maintainer: Daurnimator <daurnimator at archlinux.org>
-
-pkgname=('lua-say' 'lua51-say' 'lua52-say' 'lua53-say')
-pkgver=1.3
-pkgrel=7
-pkgdesc='Lua string hashing library, useful for internationalization'
-arch=('any')
-url='https://github.com/Olivine-Labs/say'
-license=('MIT')
-makedepends=('luarocks'
-             # https://github.com/luarocks/luarocks/issues/1275
-             'lua51'
-             'lua52'
-             'lua53'
-             'lua')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/Olivine-Labs/say/archive/v$pkgver-1.tar.gz")
-sha256sums=('23e8cd378bb4ab1693279100a785acb2246418e3570b7de7d995b5847b3507ca')
-
-build() {
-    cd "say-$pkgver-1"
-
-    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/"
-    done
-}
-
-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_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_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_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"
-}

Copied: lua-say/repos/community-any/PKGBUILD (from rev 1275906, lua-say/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-08-23 19:23:16 UTC (rev 1275907)
@@ -0,0 +1,51 @@
+# Maintainer: Daurnimator <daurnimator at archlinux.org>
+
+pkgname=('lua-say' 'lua51-say' 'lua52-say' 'lua53-say')
+pkgver=1.4.0
+pkgrel=1
+_rockrel=1
+pkgdesc='Lua string hashing library, useful for internationalization'
+arch=('any')
+url='https://github.com/lunarmodules/say'
+license=('MIT')
+makedepends=('luarocks'
+             # https://github.com/luarocks/luarocks/issues/1275
+             'lua51'
+             'lua52'
+             'lua53'
+             'lua')
+_archive="say-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz")
+sha256sums=('b81e7519ebdff47e1aee69b2a53eda201824cdd7a15e743ff322b8e4fde350cb')
+
+build() {
+    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 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() {
+    _package 5.1
+}
+
+package_lua52-say() {
+    _package 5.2
+}
+
+package_lua53-say() {
+    _package 5.3
+}
+
+package_lua-say() {
+    _package 5.4
+}



More information about the arch-commits mailing list