I think the last two seds on package()
should be set to replace in usr/bin/unreal-engine-4.sh
After this, because _install_dir has a slash in it,
replace the last sed line with:
sed -i "s/InstalledLocationPlaceholder/${_install_dir/\//\\/}/" "${pkgdir}/usr/bin/unreal-engine-4.sh"
In the .sh file the desktop file in home should be the .local/share/...
directory.
Pinned Comments
Neko-san commented on 2023-07-13 04:15 (UTC)
The issue with me including the
Commit.gitdeps.xml
alsongside the PKGBUILD manually is that it might be subject to a legal grey area since the UE repo is private and is technically a part of the source;because the repo is private, having the PKGBUILD access it directly isn't a simple task because Github requires the URL request to have a generated timed authentication token that expires.
Meaning that I can't simply grab the URL and paste it into the PKBUILD willy-nilly because it is both not tied to your account and because the links have an expiration attached. I get why Epic chose this approach but their flawed "open-source" methodology is what makes this difficult.
Neko-san commented on 2022-10-15 20:50 (UTC) (edited on 2022-10-15 20:54 (UTC) by Neko-san)
I updated it to not use the Arch Clang compiler by default; I thought I had this opt-out but I didn't - the reason being that for UE4, there's actually a hard-coded reference to look for a Windows compiler (thanks Epic...) and using the Arch compiler has been the solution on the AUR for UE4 for a long time
That said, if it fails to compile by default now (at least if strictly using
makepkg
), the fault is entirely on Epic for not properly having the Unreal Build Tool (UBT) not handle the Linux build properly - proper support for this was implemented in UE5, so they should honestly backport that to UE4's codebaseI left a user toggle-able switch in the PKGBUILD if anyone wants to try the Arch Clang compiler patch again, for whatever reason
If anyone manages to figure out how to this otherwise, let me know and I'll add the fix