Package Details: lua51-tl 0.24.1-1

Git Clone URL: https://aur.archlinux.org/teal.git (read-only, click to copy)
Package Base: teal
Description: The compiler for Teal, a typed dialect of Lua
Upstream URL: https://github.com/teal-language/tl
Licenses: MIT
Submitter: alerque
Maintainer: alerque
Last Packager: alerque
Votes: 2
Popularity: 0.000000
First Submitted: 2021-07-31 09:53 (UTC)
Last Updated: 2024-10-27 20:35 (UTC)

Dependencies (5)

Required by (0)

Sources (1)

Latest Comments

amadan commented on 2024-10-27 11:48 (UTC)

Ran into this problem after install

❯ tl --help
/usr/bin/lua5.4: cannot open /home/user/.cache/paru/clone/teal/pkg/teal/usr/lib/luarocks/rocks-5.4/tl/dev-1/bin/tl: No such file or directory

Making the sed replacement be global seemed to fix it

diff --git a/PKGBUILD b/PKGBUILD
index da8e1e2..ee527af 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -24,7 +24,7 @@ _package() {
        depends=("${pkgname%-*}" "${_luadeps[@]/#/${pkgname%-*}-}")
        luarocks --lua-version $1 --tree "$pkgdir/usr/" \
                make --deps-mode none --no-manifest -- "$_rockname-dev-1.rockspec"
-       find "$pkgdir/usr/bin" -type f -execdir sed -i -e "s#$pkgdir##" {} \;
+       find "$pkgdir/usr/bin" -type f -execdir sed -i -e "s#$pkgdir##g" {} \;
        [[ -v 2 ]] &&
                rm -rf "$pkgdir/usr/"{lib,share} ||
                rm -rf "$pkgdir/usr/bin"