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
Last Packager: Neko-san
Votes: 76
Popularity: 0.053868
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 .. 12 13 14 15 16 17 18 19 20 21 22 .. 82 Next › Last »

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

juancarlospaco commented on 2022-11-23 17:13 (UTC)

pkgrel=18 More errors:

==> Starting package()...
--2022-11-23 13:52:30--  https://raw.githubusercontent.com/EliverLara/candy-icons/master/LICENSE
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
Saving to: ‘LICENSE’
LICENSE                                                    100%[========================================================================================================================================>]  34,33K  --.-KB/s    in 0,002s  
2022-11-23 13:52:31 (20,2 MB/s) - ‘LICENSE’ saved [35149/35149]


install: cannot create regular file '/home/juan/code/unreal-engine/pkg/unreal-engine/usr/bin/': Not a directory
==> ERROR: A failure occurred in package(). Aborting...
$

It is after wget'ing the LICENSE.

Neko-san commented on 2022-11-23 10:45 (UTC) (edited on 2022-11-24 09:59 (UTC) by Neko-san)

@juancarlospaco I wrote line 135 differently to prevent that error and reported the logic bug in bash upstream | Edit: it seems it's just how bash handles that line, rather than a bug

That aside,I see that you're having a similar issue as @coolitic with the file path being incorrect... I think I see where the logic is going wrong with it now; I hadn't considered a certain possibility before and I've taken a step to resolve the issue

What was happening was that ${srcdir} was being called twice even though it should not have been at all; this might just be how bash handles loop code, so I re-wrote how it's handled

juancarlospaco commented on 2022-11-22 21:13 (UTC) (edited on 2022-11-22 23:31 (UTC) by juancarlospaco)

pkgrel 17

Also error mv: cannot stat '/home/juan/code/unreal-engine/src/unreal-engine//home/juan/code/unreal-engine/src/unreal-engine/*': No such file or directory.

I am using git and makepkg on bash only, no AUR helpers.

Neko-san commented on 2022-11-22 18:34 (UTC) (edited on 2022-11-22 18:37 (UTC) by Neko-san)

@juancarlospaco What version is line 10 for you? Line 135 is considered valid in bash but I have seen an odd issue like this before, so I need to confirm

juancarlospaco commented on 2022-11-22 18:27 (UTC)

Some errors PKGBUILD: line 135: [: false: integer expression expected., it is the boolean conditional in the if.