Package Details: unreal-engine 5.5.0-0

Git Clone URL: https://aur.archlinux.org/unreal-engine.git (read-only, click to copy)
Package Base: unreal-engine
Description: A 3D game engine by Epic Games which can be used non-commercially for free.
Upstream URL: https://www.unrealengine.com/
Keywords: 3D engine game ue5 Unreal
Licenses: GPL3, custom:UnrealEngine
Submitter: acerix
Maintainer: Shatur (Neko-san)
Last Packager: Neko-san
Votes: 76
Popularity: 1.12
First Submitted: 2016-05-01 18:37 (UTC)
Last Updated: 2024-11-16 03:10 (UTC)

Dependencies (29)

Required by (1)

Sources (6)

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:

sudo groupadd unrealengine-users
sudo usermod -aG unrealengine-users (your-username)
sudo chown -R root:unrealengine-users /opt/unreal-engine
sudo chmod -R 775 /opt/unreal-engine

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.

Latest Comments

« First ‹ Previous 1 .. 11 12 13 14 15 16 17 18 19 20 21 .. 81 Next › Last »

Neko-san commented on 2022-12-02 23:33 (UTC) (edited on 2022-12-02 23:40 (UTC) by Neko-san)

@juancarlospaco Well, there's obviously something in that built package file, according to your pacman log, so there's definitely something in there

Open that package with an archive file manager and either tell me or show me what it looks like and if you can find it in there.

@shawarden That's a source folder, that's to be expected to some extent, but there's definitely a weird problem going on here that doesn't make sense to me with how mv is behaving on this line:

https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=unreal-engine&id=d1d51a3d54484c3a107efe901ecfbaf2e850942f#n207

The logic for this part makes sense to me, and no errors show up in https://shellcheck.net when I do this, but perhaps another person knowledgeable in Bash can help me see what I'm doing wrong here and how to correct it; if you guys can, try asking around about it, the more of us that ask and find out the faster I can implement the fix without playing Russian roulette for solutions

shawarden commented on 2022-12-02 22:31 (UTC)

Installing with paru and yay puts the binary UnrealEditor at /opt/unreal-engine/home/$USER/.cache/paru/unreal-engine/src/unreal-engine/Engine/Binaries/Linux or /opt/unreal-engine/home/$USER/.cache/yay/unreal-engine/src/unreal-engine/Engine/Binaries/Linux

juancarlospaco commented on 2022-12-02 10:51 (UTC)

pkgrel=23, commit d1d51a3d54484c3a107efe901ecfbaf2e850942f, Errors:

This is compiling but not installing the binaries now:

$ ls /opt/unreal-engine
ls: cannot access '/opt/unreal-engine': No such file or directory

$ makepkg -si
==> WARNING: A package has already been built, installing existing package...
==> Installing package unreal-engine with pacman -U...
[sudo] password for juan: 
loading packages...
resolving dependencies...
looking for conflicting packages...

Package (1)    New Version  Net Change   
unreal-engine  5.1.0-23     190678,30 MiB
Total Installed Size:  190678,30 MiB

:: Proceed with installation? [Y/n] 
(1/1) checking keys in keyring                                                                                                   
(1/1) checking package integrity                                                                                                            
(1/1) loading package files                                                                                                                   
(1/1) checking for file conflicts                                                                                                             
:: Processing package changes...
(1/1) installing unreal-engine                                                                                                                
:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Leaving only one Unreal Engine 5 package in cache to save storage space...
==> no candidate packages found for pruning
(3/3) Updating the desktop file MIME type cache...

$ ls /opt/unreal-engine/
Engine/ home/   
$ ls /opt/unreal-engine/Engine/
Binaries
$ ls /opt/unreal-engine/Engine/Binaries/
Android
$ ls /opt/unreal-engine/Engine/Binaries/Android/

$

Theres no /opt/unreal-engine/Engine/Binaries/Linux/ nor UE5Editor nor UE4Editor.

Neko-san commented on 2022-11-27 01:52 (UTC)

I already fixed that the other day; I just didn't update the pkgrel because it wasn't related to actually packaging the engine

You can correct that line yourself to fix it; the change will be reflected going forward, so you won't have to worry about it again

juancarlospaco commented on 2022-11-27 01:36 (UTC)

pkgrel=23 Errors:

/usr/bin/unreal-engine-5.sh is a bash script that executes xdg-open "${HOME}./local/share/applications/com.unrealengine.UE5Editor.desktop", "${HOME}/.local/share/applications/com.unrealengine.UE5Editor.desktop" is a desktop launcher that executes Exec=/usr/bin/unreal-engine-5.sh, this is an infinite loop, that never executes UE5.

The launcher runs the script and the script runs the launcher, it is an infinite loop that never runs UE5. Everything else is working Ok.

Neko-san commented on 2022-11-25 19:38 (UTC)

@juancarlospaco Thanks for pointing out my typo

As for assuming that ${HOME} always exists in the .sh bash script, this is correct and intentional; we don't install anything to this location inside of the package itself.

What we're doing is creating a unprivileged user desktop file that overrides the globally installed one and we find the correct path to the UE editor and execute it in the script.

Neko-san commented on 2022-11-25 06:47 (UTC)

Ah, I had actually made a typo with creating the folder you were missing

That aside, I corrected the sed command and fixed that typo

juancarlospaco commented on 2022-11-24 15:27 (UTC) (edited on 2022-11-25 03:15 (UTC) by juancarlospaco)

pkgrel=20 Errors:

sed -i "s/InstalledLocationPlaceholder/${_install_dir}/" "${pkgdir}/usr/share/applications/com.unrealengine.UE5Editor.desktop"

sed: -e expression #1, char 36: unknown option to `s'
==> ERROR: A failure occurred in package(). Aborting...
$

It is this line sed -i "s/InstalledLocationPlaceholder/${_install_dir}/" "${pkgdir}/usr/share/applications/com.unrealengine.UE5Editor.desktop".

BEFORE line that says install -Dm755 ../unreal-engine-5.sh "${pkgdir}/usr/bin/", I had to add mkdir -p "${pkgdir}/usr/bin/" for it to work, otherwise it fails too.

Neko-san commented on 2022-11-23 20:34 (UTC)

It should be fixed; I'm creating that folder sooner now

It shouldn't have been an issue in the first place in the code but I'm just making that folder as soon as possible now to get it out of the way