blob: 4380c1a32fdf6ae27c01aae71c3c41b26962e9ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# $Id: PKGBUILD 184972 2016-08-03 10:06:19Z lcarlier $
# Maintainer (Arch): Vesa Kaihlavirta <vegai@iki.fi>
# Maintainer: André Silva <emulatorman@parabola.nu>
pkgname=openttd
pkgver=1.6.1
pkgrel=1.parabola1
pkgdesc='An engine for running Transport Tycoon Deluxe, without nonfree openttd-opensfx recommendation'
arch=('i686' 'x86_64' 'armv7h')
url='http://www.openttd.org'
license=('GPL')
depends=('libpng' 'sdl' 'icu' 'fontconfig' 'lzo' 'hicolor-icon-theme' 'desktop-file-utils' 'xz')
optdepends=('openttd-opengfx: free graphics')
source=("http://binaries.openttd.org/releases/${pkgver}/${pkgname}-${pkgver}-source.tar.xz"
openttd-1.5.3-gcc6.patch)
sha256sums=('9b08996e31c3485ef8dedfa1ab65147091593f3f11bd51eb7662ce5ea41363aa'
'3e9652e1401150c287b71595afbf268dc4379908519d7939ec4e46548026b7e9')
prepare() {
cd ${pkgname}-${pkgver}
# patch from fedora
patch -Np1 -i ../openttd-1.5.3-gcc6.patch
}
build() {
cd ${pkgname}-${pkgver}
./configure \
--prefix-dir=/usr \
--binary-name=${pkgname} \
--binary-dir=bin \
--data-dir=share/${pkgname} \
--install-dir=${pkgdir} \
--doc-dir=share/doc/${pkgname} \
--menu-name="OpenTTD" \
--personal-dir=.${pkgname}
make
}
package() {
cd ${pkgname}-${pkgver}
make install
}
|