1 # Maintainer: DeedleFake <yisszev at beckforce dot com>
6 pkgdesc="Sonic Robo Blast 2's data files."
9 url='http://www.srb2.org'
13 makedepends=('unrar' 'icoutils')
15 source=(http://srb2.org/files/SRB2_v${pkgver//\./}.exe)
17 md5sums=('6f998fb6403c07b304f26c89c3276b86')
22 unrar x SRB2_v${pkgver//\./}.exe
24 wrestool -tgroup_icon -o. -x srb2win.exe
25 convert *.ico srb2.png
31 install -m 644 -D music.dta "$pkgdir/usr/share/games/srb2/music.dta"
32 install -m 644 -D drill.dta "$pkgdir/usr/share/games/srb2/drill.dta"
33 install -m 644 -D knux.plr "$pkgdir/usr/share/games/srb2/knux.plr"
34 install -m 644 -D rings.wpn "$pkgdir/usr/share/games/srb2/rings.wpn"
35 install -m 644 -D sonic.plr "$pkgdir/usr/share/games/srb2/sonic.plr"
36 install -m 644 -D tails.plr "$pkgdir/usr/share/games/srb2/tails.plr"
37 install -m 644 -D zones.dta "$pkgdir/usr/share/games/srb2/zones.dta"
38 install -m 644 -D soar.dta "$pkgdir/usr/share/games/srb2/soar.dta"
39 install -m 644 -D srb2.srb "$pkgdir/usr/share/games/srb2/srb2.srb"
41 local _icon="$(find srb2{,-1}.png)"
42 install -m 644 -D "$_icon" "$pkgdir/usr/share/pixmaps/srb2.png"