[arch-commits] Commit in lua-luaepnf/trunk (PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Sat Sep 4 14:01:50 UTC 2021
Date: Saturday, September 4, 2021 @ 14:01:50
Author: alerque
Revision: 1011258
upgpkg: lua-luaepnf 0.3-7; fix rockspec hotfix to not mess with $srcdir
Modified:
lua-luaepnf/trunk/PKGBUILD
----------+
PKGBUILD | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-09-04 14:00:55 UTC (rev 1011257)
+++ PKGBUILD 2021-09-04 14:01:50 UTC (rev 1011258)
@@ -24,8 +24,10 @@
'4aa148cb1df45d83332fa2b0c7609ecb56b214c2ff13f06b62d7551e82b4154f')
prepare() {
+ cd "$_archive"
# Lpeg is not needed at *build* time, but `luarocks make` checks for it
- sed -i -e '/lpeg >=/d' $_rockspec
+ # and depends=() is set at package time too late for makepkg to install it
+ sed -e '/lpeg >=/d' "../$_rockspec" > "$_rockspec"
}
_package() {
@@ -33,23 +35,23 @@
depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
provides=("${pkgname/-lua/-}=$pkgver")
luarocks --lua-version="$1" --tree="$pkgdir/usr/" \
- make --deps-mode=none --no-manifest "../$_rockspec"
+ make --deps-mode=none --no-manifest "$_rockspec"
sed -ne '/^License$/,$p' README.md |
install -Dm0644 /dev/stdin "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}
package_lua-luaepnf() {
- _package 5.4
+ _package 5.4
}
package_lua51-luaepnf() {
- _package 5.1
+ _package 5.1
}
package_lua52-luaepnf() {
- _package 5.2
+ _package 5.2
}
package_lua53-luaepnf() {
- _package 5.3
+ _package 5.3
}
More information about the arch-commits
mailing list