1 # Maintainer: Viktor Vidovic <vidovicviktor@googlemail.com>
3 pkgname=openttd-cargodist
6 pkgdesc='OpenTTD with passenger and cargo distribution patch'
8 url='http://wiki.openttd.org/Passenger_and_cargo_distribution'
10 depends=('libpng' 'sdl' 'icu' 'fontconfig' 'lzo2' 'hicolor-icon-theme' 'desktop-file-utils')
11 install=openttd.install
12 optdepends=('openttd-opengfx: free graphics'
13 'openttd-opensfx: free soundset')
14 source=("http://bundles.openttdcoop.org/cargodist/LATEST/openttd-cargodist-g4dd2678f-source.tar.xz")
17 cd ${pkgname}-${pkgver}
21 --binary-name=${pkgname} \
23 --data-dir=share/${pkgname} \
24 --install-dir=${pkgdir} \
25 --doc-dir=share/doc/${pkgname} \
26 --menu-name="OpenTTD" \
27 --personal-dir=.${pkgname}
33 cd ${pkgname}-${pkgver}
37 #Link opengfx and opensfx files
38 cd "${pkgdir}/usr/share/${pkgname}/data/"
39 ln -s /usr/share/openttd/data/ogfx1_base.grf ogfx1_base.grf
40 ln -s /usr/share/openttd/data/ogfxc_arctic.grf ogfxc_arctic.grf
41 ln -s /usr/share/openttd/data/ogfxe_extra.grf ogfxe_extra.grf
42 ln -s /usr/share/openttd/data/ogfxh_tropical.grf ogfxh_tropical.grf
43 ln -s /usr/share/openttd/data/ogfxi_logos.grf ogfxi_logos.grf
44 ln -s /usr/share/openttd/data/ogfxt_toyland.grf ogfxt_toyland.grf
45 ln -s /usr/share/openttd/data/opengfx.obg opengfx.obg
46 ln -s /usr/share/openttd/data/opensfx.cat opensfx.cat
47 ln -s /usr/share/openttd/data/opensfx.obs opensfx.obs
50 md5sums=('5666e665a9a77a7ef30df5e3975004bb')