diff options
author | M0Rf30 | 2015-06-17 16:37:22 +0200 |
---|---|---|
committer | M0Rf30 | 2015-06-17 16:37:22 +0200 |
commit | dff6c1929662ddb0a2131c5eb3520cc4efc184c1 (patch) | |
tree | 080c73f0259a904593d8bd778ed058580e12f8ca | |
download | aur-dff6c1929662ddb0a2131c5eb3520cc4efc184c1.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 36 | ||||
-rw-r--r-- | install.sh | 42 |
3 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6b7c216aa353 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = unrealtournament-rocketarena + pkgdesc = The popular Rocket Arena gametype also for UT1999. + pkgver = 1.6 + pkgrel = 1 + url = http://www.moddb.com/mods/rocket-arenaut + install = install.sh + arch = i686 + arch = x86_64 + groups = unrealtournament + groups = unrealtournament-bonuspacks + license = custom + makedepends = umodunpack + depends = unrealtournament-bonuspack3 + optdepends = unrealtournament-bonuspack1: requires ServerPackages=RocketArenaMultiMesh setting + source = rocketarena-1.6.zip::http://www.ut-files.com/index.php?dir=GameTypes/RocketArena/&file=rocketarenautfull160.zip + source = install.sh + md5sums = 66569b63e630690e9ca5b22722b4a548 + md5sums = dfb1f79f67027be07df189d41e3a2422 + +pkgname = unrealtournament-rocketarena + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..adbfa38ac60d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,36 @@ +# Mantainer: M0Rf30 + +pkgname=unrealtournament-rocketarena +pkgver=1.6 +pkgrel=1 +pkgdesc="The popular Rocket Arena gametype also for UT1999." +arch=('i686' 'x86_64') +url="http://www.moddb.com/mods/rocket-arenaut" +license=('custom') +groups=(unrealtournament unrealtournament-bonuspacks) +depends=(unrealtournament-bonuspack3) +makedepends=(umodunpack) +optdepends=("unrealtournament-bonuspack1: requires ServerPackages=RocketArenaMultiMesh setting") +install=install.sh +source=(rocketarena-$pkgver.zip::'http://www.ut-files.com/index.php?dir=GameTypes/RocketArena/&file=rocketarenautfull160.zip' + install.sh) +md5sums=('66569b63e630690e9ca5b22722b4a548' + 'dfb1f79f67027be07df189d41e3a2422') + +build() { + cd "$srcdir" + + install --mode=0644 -D RocketArenaReadme.txt \ + "$pkgdir/opt/ut/Help/RocketArenaReadme.txt" + umodunpack --base "$pkgdir/opt/ut" --unpack \ + RocketArenaUTFull160.umod || return 1 + umodunpack --base "$pkgdir/opt/ut" --unpack \ + RocketArenaUTBonusPack160.umod || return 1 + find "$pkgdir/opt/ut" -type d -exec chmod 755 '{}' \; + find "$pkgdir/opt/ut" -type f -exec chmod 644 '{}' \; + + ## xutfx.utx is also in unrealtournament-bonuspack3. Thus remove it and depend + ## on that package. + rm -f -- "$pkgdir/opt/ut/Textures/xutfx.utx" || return 1 +} + diff --git a/install.sh b/install.sh new file mode 100644 index 000000000000..09ed3a36694a --- /dev/null +++ b/install.sh @@ -0,0 +1,42 @@ +## arg 1: the new package version +pre_install() { + return +} + +## arg 1: the new package version +post_install() { + cat << __EOF__ +Add the following to the respective sections of your UnrealTournament.ini +only if you also have ut1999-bonuspack1 installed: + [Engine.GameEngine] + ServerPackages=RocketArenaMultiMesh +__EOF__ +} + +## arg 1: the new package version +## arg 2: the old package version +pre_upgrade() { + return +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + return +} + +## arg 1: the old package version +pre_remove() { + return +} + +## arg 1: the old package version +post_remove() { + cat << __EOF__ +Remove the following from the respective sections of your UnrealTournament.ini: + [Engine.GameEngine] + ServerPackages=RocketArenaMultiMesh +__EOF__ +} + +## vim: filetype=sh |