1 # Maintainer: Nicky726 (nicky726 <at> gmail <dot> com)
2 # Contributor: Sacro (ben <at> benwoodward <dot> me <dot> uk)
7 pkgdesc="An engine for running Transport Tycoon Deluxe with experimental 32bpp patch"
9 url="http://wiki.openttd.org/32bpp_Extra_Zoom_Levels"
11 depends=('libpng' 'sdl' 'icu' 'lzo2' 'fontconfig' 'hicolor-icon-theme' 'desktop-file-utils'
12 'openttd-opengfx' 'openttd-opensfx')
13 install=${pkgname}.install
14 source=(http://bundles.openttdcoop.org/32bpp-ez/${pkgver}/${pkgname}-ez-${pkgver}-source.tar.xz
16 md5sums=('5b3d7f3769fb7743dd325e08667cce67'
17 '7ab5a663d29edd95ca39ba90587ff058')
20 cd "${srcdir}/${pkgname}-ez-${pkgver}"
22 # Configure it, so the user can have other versions of the game
23 # installed and running without troubles
24 ./configure --prefix-dir=/usr --binary-name=${pkgname} --binary-dir=bin \
25 --data-dir=share/${pkgname} --install-dir=${pkgdir} --doc-dir=share/doc/${pkgname} \
26 --menu-name="OpenTTD" --personal-dir=.${pkgname}
32 cd "${srcdir}/${pkgname}-ez-${pkgver}"
36 # Copy the modified config file
37 install -m644 "${srcdir}/openttd.cfg" "${pkgdir}/usr/share/${pkgname}/openttd.cfg"
39 # Link opengfx and opensfx files, so that the game runs
40 cd "${pkgdir}/usr/share/${pkgname}/data/"
41 ln -s /usr/share/openttd/data/ogfx1_base.grf ogfx1_base.grf
42 ln -s /usr/share/openttd/data/ogfxc_arctic.grf ogfxc_arctic.grf
43 ln -s /usr/share/openttd/data/ogfxe_extra.grf ogfxe_extra.grf
44 ln -s /usr/share/openttd/data/ogfxh_tropical.grf ogfxh_tropical.grf
45 ln -s /usr/share/openttd/data/ogfxi_logos.grf ogfxi_logos.grf
46 ln -s /usr/share/openttd/data/ogfxt_toyland.grf ogfxt_toyland.grf
47 ln -s /usr/share/openttd/data/opengfx.obg opengfx.obg
48 ln -s /usr/share/openttd/data/opensfx.cat opensfx.cat
49 ln -s /usr/share/openttd/data/opensfx.obs opensfx.obs