updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / ascendancy-non-us / PKGBUILD
blobc113ab4d11bc05b0e832c60f6d351ecb32ecd9d0
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/"}
8 _appname="ascendancy"
9 pkgname=ascendancy-non-us
10 pkgdesc="Science fiction turn-based strategy game (for non US versions, uses DOSBox, CD-ROM required)"
11 pkgver=1.8.10
12 pkgrel=1
13 arch=(any)
14 license=("custom")
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"
24         "lib${_appname}.sh"
25         "${_appname}.sh"
26         "${_appname}-config.sh"
27         "01-user.conf"
28         "99-base.conf"
29         "cob.cfg")
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"
42 package() {
43   # Copy original resources (case-insensitive)
44   cd "${CD_DIR}/data"
45   local i
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/{}" \;
48   done
49   
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"
56   
57   # Use dos32a instead of dos4gw
58   ln -s "/usr/share/dos32a/dos32a.exe" "dos4gw.exe"
60   # Fix case
61   convmv --lower --notest -r *
62   
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"