diff options
author | John-Michael Mulesa | 2021-08-19 18:40:09 +1000 |
---|---|---|
committer | John-Michael Mulesa | 2021-08-19 18:40:09 +1000 |
commit | a4d8d1b7b82ba898f047480614df419d5014faf0 (patch) | |
tree | f9ba71539ec49b4c884cdd4c3f53e1fcfb1c8e71 | |
parent | 94e73899c5f564cce5b75b0b6cd49486d18ef8db (diff) | |
download | aur-a4d8d1b7b82ba898f047480614df419d5014faf0.tar.gz |
Add GOG variant of UT2004 installer to AUR.
-rw-r--r-- | .SRCINFO | 39 | ||||
-rw-r--r-- | ChangeLog | 20 | ||||
-rw-r--r-- | PKGBUILD | 97 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | ut2004.desktop | 8 | ||||
-rw-r--r-- | ut2004.install | 13 | ||||
-rw-r--r-- | ut2004.png | bin | 0 -> 93315 bytes | |||
-rw-r--r-- | ut2004.sh | 4 |
8 files changed, 157 insertions, 28 deletions
@@ -1,19 +1,32 @@ pkgbase = ut2004-gog - pkgdesc = Popular first person shooter, native Linux version. (GOG version) - pkgver = 1 + pkgdesc = Popular first person shooter, native Linux version, installing data files from GOG (requires you having had purchased the GOG version). + pkgver = 3369_2 pkgrel = 1 - url = https://github.com/tim241/ut2004-gog + epoch = 1 + url = https://www.gog.com/game/unreal_tournament_2004_ece + install = ut2004.install + changelog = ChangeLog + arch = i686 arch = x86_64 - depends = bash - depends = awk - depends = sed - depends = curl - depends = wine - depends = winetricks + license = custom + makedepends = lgogdownloader + makedepends = innoextract + depends = sdl + depends = openal depends = libstdc++5 - depends = coreutils - source = git+https://github.com/tim241/ut2004-gog.git - sha256sums = SKIP + conflicts = ut2004 + conflicts = ut2004-steam + source = setup_unreal_tournament_2004_1.0_(18947).exe::gogdownloader://unreal_tournament_2004_ece/en1installer0 + source = setup_unreal_tournament_2004_1.0_(18947)-1.bin::gogdownloader://unreal_tournament_2004_ece/en1installer1 + source = https://github.com/jm2/archlinux-package-ut2004-steam/raw/master/ut2004-lnxpatch3369-2.tar.bz2 + source = ut2004.desktop + source = ut2004.png + source = ut2004.sh + md5sums = 243376d34413b830324c5879ac2f9cfd + md5sums = a211e2a6feed7334bb3b7deef6b858b5 + md5sums = 0fa447e05fe5a38e0e32adf171be405e + md5sums = f952ba5de805cb475f487644fe16f99b + md5sums = 145fb11c4e768ecb65396f51ac29e743 + md5sums = 85623fe9fecd0678e4f12902c22d7272 pkgname = ut2004-gog - diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 000000000000..f88cbf326263 --- /dev/null +++ b/ChangeLog @@ -0,0 +1,20 @@ +2011-04-15 NiteHogg <keith.b.elliott [at] gmail [dot] com> + + * ut2003 3369.2-1 : + Overhauled this package build, + fixed sound and permissions. + Tested with UT2004 ECE DVD + on x86_64. + +2011-04-25 NiteHogg <keith.b.elliott [at] gmail [dot] com> + + * ut2003 3369.2-3 : + Updated the PKGBUILD to remove + the 64-bit launch bins if ran + on a 32-bit system. 32-bit strip + doesn't like the 64-bit compiled + bins. Thanks node357. + +2014-06-04 demon012 <alan.james.jenkins [at] gmail [dot] com> + + First Steam version of the package. @@ -1,23 +1,90 @@ +# Maintainer: John-Michael Mulesa <jmulesa [at] gmail [dot] com> +# Contributor: Alan Jenkins <alan.james.jenkins [at] gmail [dot] com> +# Contributor: NiteHogg <keith.b.elliott [at] gmail [dot] com> +# Contributor: Slash <demodevil5 [at] yahoo [dot] com> +# Contributor: Karsten Anderson <orbitcoder@gmail.com> + pkgname=ut2004-gog -pkgver=1 +epoch=1 +pkgver=3369_2 +_pkgvermaj=3369 +_pkgvermin=2 pkgrel=1 -pkgdesc="Popular first person shooter, native Linux version. (GOG version)" -arch=('x86_64') -url="https://github.com/tim241/ut2004-gog" +pkgdesc="Popular first person shooter, native Linux version, installing data files from GOG (requires you having had purchased the GOG version)." +epoch=1 +arch=('i686' 'x86_64') +url="https://www.gog.com/game/unreal_tournament_2004_ece" +license=('custom') +depends=('sdl' 'openal' 'libstdc++5') +makedepends=('lgogdownloader' 'innoextract') +conflicts=('ut2004' 'ut2004-steam') +install=ut2004.install +changelog=ChangeLog +source=("setup_unreal_tournament_2004_1.0_(18947).exe::gogdownloader://unreal_tournament_2004_ece/en1installer0" + "setup_unreal_tournament_2004_1.0_(18947)-1.bin::gogdownloader://unreal_tournament_2004_ece/en1installer1" + "https://github.com/jm2/archlinux-package-ut2004-steam/raw/master/ut2004-lnxpatch$_pkgvermaj-$_pkgvermin.tar.bz2" + "ut2004.desktop" + "ut2004.png" + "ut2004.sh") +md5sums=('243376d34413b830324c5879ac2f9cfd' + 'a211e2a6feed7334bb3b7deef6b858b5' + '0fa447e05fe5a38e0e32adf171be405e' + 'f952ba5de805cb475f487644fe16f99b' + '145fb11c4e768ecb65396f51ac29e743' + '85623fe9fecd0678e4f12902c22d7272') -depends=('bash' 'awk' 'sed' 'curl' 'wine' 'winetricks' 'libstdc++5' 'coreutils') +package() { + # Making sure directories exist. + install -d $pkgdir/usr/share/{applications,pixmaps,licenses} + install -d $pkgdir/opt/ut2004 + install -d $pkgdir/opt/ut2004/{Animations,Help,Textures,Web,Benchmark,ForceFeedback,KarmaData,Maps,Music,StaticMeshes,Sounds,Speech,System} + install -d $pkgdir/usr/bin/ -source=("git+https://github.com/tim241/${pkgname}.git") + # Install the GOG UT2004 data. + innoextract "$srcdir/setup_unreal_tournament_2004_1.0_(18947).exe" -d "$pkgdir/opt/ut2004/" -sha256sums=('SKIP') + # Install UT2004 Linux patch data. + cp -R $srcdir/UT2004-Patch/* $pkgdir/opt/ut2004 -pkgver() { - cd "$pkgname" - git describe --always -} + # Install helper scripts. + install -D -m 755 $srcdir/ut2004.sh \ + $pkgdir/opt/ut2004/Scripts/ut2004 -package() { - cd "$pkgname" - install -D ut2004-gog "$pkgdir"/usr/bin/ut2004-gog - install -D ut2004-linux.tar.gz "$pkgdir"/opt/ut2004-gog/ut2004-linux.tar.gz + # Install license. + install -D -m 644 $srcdir/UT2004-Patch/System/License.int \ + $pkgdir/usr/share/licenses/$pkgname/LICENSE + + # Install desktop file. + install -D -m 644 $srcdir/ut2004.desktop \ + $pkgdir/usr/share/applications/ut2004.desktop + + # Install icon file. + install -D -m 644 $srcdir/ut2004.png \ + $pkgdir/usr/share/pixmaps/ut2004.png + + # Create symlinks to add the ut2004 startup and utility scripts to usr/bin + ln -s /opt/ut2004/Scripts/ut2004 $pkgdir/usr/bin/ut2004 || return 1 + + if [ "$CARCH" == "x86_64" ] + then + sed 's/ut2004-bin/&-linux-amd64/g' $pkgdir/opt/ut2004/Scripts/ut2004 > $pkgdir/opt/ut2004/Scripts/ut2004.TMP + + install -D -m 755 $pkgdir/opt/ut2004/Scripts/ut2004.TMP $pkgdir/opt/ut2004/Scripts/ut2004 + else + rm $pkgdir/opt/ut2004/System/ucc-bin-linux-amd64 + rm $pkgdir/opt/ut2004/System/ut2004-bin-linux-amd64 + fi + + # Installing cd key file placeholder. + cat /dev/null > $pkgdir/opt/ut2004/System/CDkey + chmod 644 $pkgdir/opt/ut2004/System/CDkey || return 1 + + + # Create symbolic links to system libraries in game directory. + ln -s /usr/lib/libSDL-1.2.so.0 $pkgdir/opt/ut2004/System || return 1 + chmod 644 $pkgdir/opt/ut2004/System/libSDL-1.2.so.0 || return 1 + ln -s /usr/lib/libopenal.so $pkgdir/opt/ut2004/System/openal.so || return 1 + chmod 644 $pkgdir/opt/ut2004/System/openal.so || return 1 } + +# vim:set ts=2 sw=2 et: diff --git a/README.md b/README.md new file mode 100644 index 000000000000..e0d55dde0d59 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +archlinux-package-ut2004-steam +============================== + +An AUR package for installing the native Linux version of Unreal Tournament from the Windows version in Steam using steamcmd. diff --git a/ut2004.desktop b/ut2004.desktop new file mode 100644 index 000000000000..317f5f18e52f --- /dev/null +++ b/ut2004.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=UT2004 +Comment=Unreal Tournament 2004 +Exec=/opt/ut2004/Scripts/ut2004 +Icon=ut2004 +Terminal=false +Type=Application +Categories=Application;Game; diff --git a/ut2004.install b/ut2004.install new file mode 100644 index 000000000000..06e67203b4ba --- /dev/null +++ b/ut2004.install @@ -0,0 +1,13 @@ +post_install() { + + echo "To complete installation, write your UT2004 cdkey to /opt/ut2004/System/CDkey as root." +} + +post_remove() { + + # Cleaning up the post install files. + rm -r /opt/ut2004 >& /dev/null +} + + +# vim:set ts=2 sw=2 et: diff --git a/ut2004.png b/ut2004.png Binary files differnew file mode 100644 index 000000000000..c9cc0e132ab1 --- /dev/null +++ b/ut2004.png diff --git a/ut2004.sh b/ut2004.sh new file mode 100644 index 000000000000..25ff94537ab5 --- /dev/null +++ b/ut2004.sh @@ -0,0 +1,4 @@ +#! /bin/bash + +cd /opt/ut2004/System +./ut2004-bin |