1 # Maintainer: Florian Léger <florian6 dot leger at laposte dot net>
3 # Package Options - Can be overwritten by the environment
5 # CD_DIR: path where your Ascendancy CDROM is mounted
6 : ${CD_DIR:="${HOME}/media/Ascend.iso/"}
9 pkgname=ascendancy-non-us
10 pkgdesc="Science fiction turn-based strategy game (for non US versions, uses DOSBox, CD-ROM required)"
15 url="http://www.logicfactory.com/main/Logic_Factory.html"
16 depends=("modfs-git" "dosbox" "dos32a")
17 makedepends=("convmv" "findutils")
18 provides=("${_appname}")
19 conflicts=("${_appname}")
20 source=("${_appname}.desktop"
21 "${_appname}-config.desktop"
22 "${_appname}.png::http://www.logicfactory.com/main/Logic_Factory_files/Ascendancy App Icon 1024x1024 cutout.png"
23 "ftp://ftp.physics.auth.gr/pub/mirrors/ftp.patches-scrolls.de/pub/Ascendancy/antag_f.zip"
26 "${_appname}-config.sh"
30 md5sums=('8220b2cbc77550f8ceb9fed0e9150645'
31 '7f3d6de0b3faeb8cb3ae010019fee4dd'
32 '66f837b34eae60d7460a27faf07f15c8'
33 '3d297d90f1bf68eb680dfcfb5652c2f7'
34 '7985f58032a4690bd90887bb9ca3e363'
35 '5678055af34ffcb70496d51457086001'
36 'ebe264aa732e4f4e6e6dd231d2dc6682'
37 'c1549ac03b636273288afaf4046f3ad0'
38 '3ed640b29163cfff258e17f742f4e9bd'
39 '64095329fffbe095fe803cc1b421b885')
40 install="${pkgname}.install"
43 # Copy original resources (case-insensitive)
46 for i in "*.cob" "*.dig" "aildrvr.lst" "setsound.exe" "uvconfig.exe"; do
47 find . -maxdepth 1 -iname "${i}" -exec install -Dm644 '{}' "${pkgdir}/usr/share/games/${_appname}/base/{}" \;
50 install -Dm644 "${srcdir}/cob.cfg" "${pkgdir}/usr/share/games/${_appname}/base/cob.cfg"
52 # Install 1.8.10 patch (aka the Antagonizer)
53 install -Dm644 "${srcdir}/ANTAG.EXE" "${pkgdir}/usr/share/games/${_appname}/base/ascend.exe"
55 cd "${pkgdir}/usr/share/games/${_appname}/base"
57 # Use dos32a instead of dos4gw
58 ln -s "/usr/share/dos32a/dos32a.exe" "dos4gw.exe"
61 convmv --lower --notest -r *
63 install -Dm644 "${srcdir}/01-user.conf" "${pkgdir}/etc/${_appname}.d/01-user.conf"
64 install -Dm644 "${srcdir}/99-base.conf" "${pkgdir}/etc/${_appname}.d/99-base.conf"
65 install -Dm644 "${srcdir}/${_appname}.desktop" "${pkgdir}/usr/share/applications/${_appname}.desktop"
66 install -Dm644 "${srcdir}/${_appname}-config.desktop" "${pkgdir}/usr/share/applications/${_appname}-config.desktop"
67 install -Dm644 "${srcdir}/${_appname}.png" "${pkgdir}/usr/share/pixmaps/${_appname}.png"
68 install -Dm644 "${srcdir}/lib${_appname}.sh" "${pkgdir}/usr/lib/lib${_appname}.sh"
69 install -Dm755 "${srcdir}/${_appname}.sh" "${pkgdir}/usr/bin/${_appname}"
70 install -Dm755 "${srcdir}/${_appname}-config.sh" "${pkgdir}/usr/bin/${_appname}-config"