updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / openttd-32bpp / PKGBUILD
blob0069e2bc9e3d4e3bae2fed6e911ac057a0bdbfbb
1 # Maintainer: Nicky726 (nicky726 <at> gmail <dot> com)
2 # Contributor: Sacro (ben <at> benwoodward <dot> me <dot> uk)
3 pkgname=openttd-32bpp
4 pkgver=1.1.0
5 pkgrel=2
6 epoch=1
7 pkgdesc="An engine for running Transport Tycoon Deluxe with experimental 32bpp patch"
8 arch=('i686' 'x86_64')
9 url="http://wiki.openttd.org/32bpp_Extra_Zoom_Levels"
10 license=('GPL')
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
15         openttd.cfg)
16 md5sums=('5b3d7f3769fb7743dd325e08667cce67'
17          '7ab5a663d29edd95ca39ba90587ff058')
19 build() {
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}
28         make
31 package(){
32         cd "${srcdir}/${pkgname}-ez-${pkgver}"
34         make install
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