updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / ut1999-bonuspack2 / PKGBUILD
blob69e8ce73fc60c953b24a9d5725ccc24a196dcda7
1 # Contributor: quantax -- contact via Arch Linux forum or AUR
3 pkgname=ut1999-bonuspack2
4 pkgver=20000104
5 pkgrel=1
6 pkgdesc="Bonuspack 2: The Digital Extremes Pack for Unreal Tournament."
7 arch=('i686')
8 url="http://www.unrealtournament2004.com/utgoty/"
9 license=('custom')
10 groups=(ut1999-goty ut1999-bonuspacks)
11 depends=(ut1999)
12 makedepends=(umodunpack)
13 replaces=(ut-bonuspack2)
14 install=install
15 source=(http://downloads.unrealadmin.org/UnrealTournament/BonusPack/utbonuspack2.zip
16         install)
17 md5sums=('5cf174dab9f91827da9935231c8d1ea6'
18          '4c08119de5a5f1be0baf6e6abf2ef7e0')
20 build() {
21     cd "$srcdir"
22     /bin/install --mode=644 -D -- CTF-HallOfGiants.unr \
23             "$pkgdir/opt/ut/Maps/CTF-HallOfGiants.unr" || return 1
24     /bin/install --mode=644 -D -- CTF-Orbital.unr \
25             "$pkgdir/opt/ut/Maps/CTF-Orbital.unr" || return 1
27     # Cannot unpack directly. Umodpack wants to apply some .ini changes.
28     /usr/bin/umodunpack --base "$pkgdir/opt/ut" --extract "de.int" DE.umod \
29             || return 1
30     /usr/bin/umodunpack --base "$pkgdir/opt/ut" --extract "de.u" DE.umod \
31             || return 1
32     /usr/bin/umodunpack --base "$pkgdir/opt/ut" \
33             --extract "demutators-readme.txt" DE.umod || return 1
34     /usr/bin/umodunpack --base "$pkgdir/opt/ut" --extract "de-logo.bmp" \
35             DE.umod || return 1
36     /bin/chmod -R -- 644 $pkgdir/opt/ut/*/*