Caleb Maclennan pushed to branch main at Arch Linux / Packaging / Packages /
luarocks
Commits:
a2789a02 by Caleb Maclennan at 2024-09-28T14:25:33+03:00
Initialize luarock manifests for existing packages on install
- - - - -
3 changed files:
- .SRCINFO
- PKGBUILD
- + luarocks.install
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,8 +1,9 @@
pkgbase = luarocks
pkgdesc = Deployment and management system for Lua modules
pkgver = 3.11.1
- pkgrel = 1
+ pkgrel = 2
url = https://luarocks.org/
+ install = luarocks.install
arch = any
license = custom
depends = coreutils
=====================================
PKGBUILD
=====================================
@@ -7,7 +7,7 @@
pkgname=luarocks
pkgver=3.11.1
-pkgrel=1
+pkgrel=2
pkgdesc='Deployment and management system for Lua modules'
backup=(etc/luarocks/config-5.{1,2,3,4}.lua)
arch=('any')
@@ -33,6 +33,7 @@
source=("https://luarocks.org/releases/$pkgname-$pkgver.tar.gz"{,.asc}
"luarocks-admin.fish"
"luarocks-admin.zsh"
)
+install=luarocks.install
sha512sums=('1e214fd41711f62fda122d73441165a2d0ffe7ed29d3d3d7690b9a1a272c03e269fc39e0c2d35dddaa64fad411b87754da4e7b8236af562fde837e9e6626fbad'
'SKIP'
'cd90cba877c0dd435b44328a0869e3102c52eb36ed5b764c3ee8a78de95772fe094419dc032db2e2c91d9a0aa35ab7c6e8a13e29b9feeb3a3172d7a129d005c0'
=====================================
luarocks.install
=====================================
@@ -0,0 +1,12 @@
+post_install() {
+ # If Luarocks in installed *after* any other Lua module package, the
hook
+ # that rebuilds the system manifests won't have fired and hence they
will
+ # be invisible to luarocks until some other package installation
happens to
+ # trigger the manifest rebuild. This jump starts the process.
+ for LUAVER in 5.{1,2,3,4}; do
+ local tree="/usr/lib/luarocks/rocks-$LUAVER/"
+ if [[ -d "$tree" ]]; then
+ luarocks-admin --lua-version "$LUAVER" make_manifest
--local-tree "$tree"
+ fi
+ done
+}
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/luarocks/-/commit/a2789a029ff0ed1158208c078e29d77fd95cc9b6
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/luarocks/-/commit/a2789a029ff0ed1158208c078e29d77fd95cc9b6
You're receiving this email because of your account on gitlab.archlinux.org.