Had a fair few issues but got there in the end.
Not sure if this is because I was using the offline installer files instead of gogdownloader but Innoextract was extracting all files into an app
subfolder.
Fixed by adding:
# Move extracted files out of innoextract hardcoded folder
mv "$pkgdir/opt/ut2004/app/"* "$pkgdir/opt/ut2004"
rmdir "$pkgdir/opt/ut2004/app"
Below the extraction in PKGBUILD.
I also added the -m
argument to stop it from adding the other subfolder tmp
to the package.
Had issues with sound, it seems that somewhere between openal 1.21.1 and 1.22.0 something changed that UT'04 doesn't like.
Tried the latest master (even with the recent as of a few hours ago 1.22.1 version bump) but unfortunately still no sound.
Fixed by compiling from the openal-soft-1.21.1 tarball and overwriting the symlink in /opt/ut2004/System with libopenal.so.1.21.1 from it.
I also noticed that the CDkey is stored in the goggame script file. So I added:
grep -FB1 CDKey /opt/ut2004/goggame-1207658691.script | grep -Po '"valueData": "\K[A-Z0-9-]*(?=",)' > "$HOME"/.ut2004/System/CDkey
chmod 600 "$HOME"/.ut2004/System/CDkey
to the first run section in ut2004.sh
.
Only other issues were mismatching checksums but I figure that was from using an offline installer. All files verify fine with github.com/DorianRudolph/gogverify
.
Pinned Comments
jmsq commented on 2021-08-19 08:49 (UTC) (edited on 2021-08-30 12:31 (UTC) by jmsq)
For those who haven't used lgogdownloader with a GOG AUR package before, here's how you set it up.
Add
'gogdownloader::/usr/bin/lgogdownloader --download-file=%u -o %o'
to theDLAGENTS
section of/etc/makepkg.conf