${_install_dir}
is explicitly defined in the PKGBUILD here: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=unreal-engine&id=c866141788f5c52cd32ddfaea3e8f5f5ca57b3ae#n48
As you can clearly see in the package()
function later, I never call this variable more than once, nor do I call any absolute path twice in the way you're experiencing. Again, the code's logic is sound; if you don't believe me, either ask someone else who knows bash and/or use https://shellcheck.net
I'm not usually one to adamantly defend my work when criticized, but I know what I do and don't do in the script, so I can't help you with an issue that isn't clearly defined in code. As such, you can try filing an Arch Linux bug (https://bugs.archlinux.org) and find out if it's actually a problem with makepkg
, but there's absolutely nothing I can do for you if you can't prove there's a problem in the written logic of this file.
Pinned Comments
Neko-san commented on 2022-11-01 02:32 (UTC) (edited on 2023-06-25 01:19 (UTC) by Neko-san)
@juancarlospaco this is easily done on your own system, not in a PKGBUILD, given that building packages runs as root:
Permission issues like this are already mentioned on the UE Arch wiki page: https://wiki.archlinux.org/title/Unreal_Engine_4#Installing_from_the_AUR
This is a user system problem; I already did what I could without needing users to do the above by giving the
777
permissions. If it still gives you trouble, you'll have to use the example to solve it or change the install location to somewhere you have user permissions by default (as I cannot do this for you).zerophase commented on 2021-05-27 08:15 (UTC) (edited on 2021-05-30 08:41 (UTC) by zerophase)
Will update to 5.0 when it is released.