updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / rebelassault / PKGBUILD
blob313e4a8c90ac1649d2cc445318c5a1d985aec4c1
1 # Maintainer: Florian Léger <florian6 dot leger at laposte dot net>
3 pkgname=rebelassault
4 pkgver=1.8
5 pkgrel=1
6 pkgdesc="Action game set in the Star Wars universe (uses DOSBox, CD-ROM required)"
7 arch=("any")
8 depends=("dosbox" "dos32a")
9 makedepends=("convmv")
10 license=("custom")
11 url="http://www.lucasarts.com"
12 source=("reb18.zip::ftp://ftp.lucasarts.com/patches/pc/reb18.exe"
13         "http://icons.iconarchive.com/icons/3xhumed/mega-games-pack-29/256/Star-Wars-Rebel-Assault-1-icon.png"
14         "lib${pkgname}.sh"
15         "${pkgname}.sh"
16         "${pkgname}.desktop")
17 md5sums=('cee08a288d8d2e18b4ecf4c2fc304dc5'
18          '28f18180a1d4a4c690d7ecc1b0912c6d'
19          'e01625a42538f4f0f513b3d10996f570'
20          'ad359a72785ef938d2edb36d5f0f4a76'
21          '786abf4cc25641a6ddbdfb5715654f6c')
22 install="${pkgname}.install"
24 # Change this to the path where your Rebel Assault CDROM is mounted
25 : ${CD_DIR:="$HOME/media/Rebel_Assault.iso/"}
27 package() {
28   local diskDir="${pkgdir}/usr/share/games/${pkgname}"
30   # Copy data (case insensitive)
31   cd "${CD_DIR}"
33   local f
34   for f in "./cut*/*" "./fin/*" "./font/*" "./lvl*/*" "./open/*" "./sys/*"; do
35     find . -iwholename "${f}" -exec install -Dm644 "{}" "${diskDir}/{}" \;
36   done
38   # Use DOS32/A instead of DOS4/GW
39   ln -s "/usr/share/dos32a/dos32a.exe" "${diskDir}/dos4gw.exe"
41   # 1.8 patch
42   for f in "ASSAULT.EXE" "BOOTDISK.EXE" "REBEL.EXE"; do
43     install -Dm644 "${srcdir}/${f}" "${diskDir}/${f}"
44   done
46   # Fix case
47   cd "${diskDir}"
48   convmv --lower --notest -r *
50   # Shell scripts
51   install -Dm644 "${srcdir}/lib${pkgname}.sh" "${pkgdir}/usr/lib/lib${pkgname}.sh"
52   install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
54   # .desktop file
55   install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
57   # Icon
58   install -Dm644 "${srcdir}/Star-Wars-Rebel-Assault-1-icon.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"