updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / openttd-cargodist / PKGBUILD
blob6feaf7b1c94e7e00efcdfcdbc0e0dd91d49b5d51
1 # Maintainer: Viktor Vidovic <vidovicviktor@googlemail.com>
3 pkgname=openttd-cargodist
4 pkgver=g4dd2678f
5 pkgrel=1
6 pkgdesc='OpenTTD with passenger and cargo distribution patch'
7 arch=('i686' 'x86_64')
8 url='http://wiki.openttd.org/Passenger_and_cargo_distribution'
9 license=('GPL')
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")
16 build() {
17   cd ${pkgname}-${pkgver} 
19  ./configure \
20     --prefix-dir=/usr \
21     --binary-name=${pkgname} \
22     --binary-dir=bin \
23     --data-dir=share/${pkgname} \
24     --install-dir=${pkgdir} \
25     --doc-dir=share/doc/${pkgname} \
26     --menu-name="OpenTTD" \
27     --personal-dir=.${pkgname}    
29   make
32 package() {
33   cd ${pkgname}-${pkgver} 
35   make install
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')