blob: 39996a48d9df17a075089ca649cafe872a545e2b (
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Maintainer: Roboron <robertoms258 at gmail dot com>
#
# PKGBUILD adapted from Simutrans https://www.archlinux.org/packages/community/x86_64/simutrans/
pkgname=simutrans-nightly
pkgver=20200818
pkgrel=1
pkgdesc="Transportation simulation game - Nightly build"
arch=('x86_64')
url="https://www.simutrans.com/"
license=('custom:Artistic')
depends=('gcc-libs' 'zlib' 'sdl_mixer' 'bzip2' 'hicolor-icon-theme' 'freetype2' 'miniupnpc')
makedepends=('dos2unix' 'git')
optdepends=('timidity++: play MIDI music'
'simutrans-pak32.comic: Lowest resolution graphics set for Simutrans'
'simutrans-pak48.excentrique: Low resolution graphics set for Simutrans, with an eccentric theme'
'simutrans-pak64: Low resolution graphics set for Simutrans'
'simutrans-pak64.classic: Low resolution graphics set for Simutrans, resembling the original'
'simutrans-pak64.contrast: Minimalistic, low resolution graphics set for Simutrans'
'simutrans-pak64.german: Low resolution graphics set for Simutrans, with a german theme'
'simutrans-pak64.ho-scale: Resolution graphics set for Simutrans for model train fans'
'simutrans-pak64.japan: Low resolution graphics set for Simutrans, with a japan theme'
'simutrans-pak64.nippon: An alternative japanese low resolution graphics set for Simutrans'
'simutrans-pak64.scifi: Low resolution graphics set for Simutrans, with a SciFi theme'
'simutrans-pak96.comic: Medium resolution graphics set for Simutrans, with a comic style'
'simutrans-pakhd: Hand-drawn graphics set for Simutrans'
'simutrans-pak128: High resolution graphics set for Simutrans'
'simutrans-pak128.britain: High resolution graphics set for Simutrans, with a british theme'
'simutrans-pak128.cs: High resolution graphics set for Simutrans, with a czech theme'
'simutrans-pak128.german: High resolution graphics set for Simutrans, with a german theme'
'simutrans-pak128.japan: High resolution graphics set for Simutrans, with a japan theme'
'simutrans-pak192.comic: Highest resolution graphics set for Simutrans')
conflicts=('simutrans')
source=(git+https://github.com/aburch/simutrans
https://raw.githubusercontent.com/aburch/simutrans/8593f5b1248d03f907a149f7abc41ae6512009e1/simutrans.svg
settings-folder.patch
path-for-game-data.patch
config.patch
simutrans.desktop
"How to add files and paksets.md")
sha256sums=('SKIP'
'c0c2dd5da146f64901b00c6ee67e0818a166b983a81cee7897c4843aa9f21c81'
'671398550f46525ef0dae338d9e1984bfc0e1ec36153e1c4163c8c35de240c7e'
'0d37c0d25928fc4f8a6fc30e4dbf7b2b949f183e87e27f69494f38bbab5708f0'
'da30fa691324fa1705c93be9b82e025f76ded9249e8c82acd4fa4fb537edd23c'
'99545152f5e739b7eb028152383fa10d3e3d303c99167e1c6e5a6bd7dcd00fa3'
'f933d5608052b73e03e21d4ade0909e471c643ee5493023921fa5bc963a06ab3')
prepare() {
# Some files are distributed in DOS format
find . -type f -exec dos2unix -q '{}' \;
cd simutrans
# Adjust paths
patch -Np0 -i ../settings-folder.patch
patch -Np0 -i ../path-for-game-data.patch
# Configure the build process
cp config.template config.default
patch -Np0 -i ../config.patch
}
build() {
cd simutrans
make
}
package() {
#binary
install -Dm755 simutrans/build/default/sim "$pkgdir/usr/bin/simutrans"
#data
mkdir -p "$pkgdir/usr/share/games/simutrans"
cp -r simutrans/simutrans/* "$pkgdir/usr/share/games/simutrans"
cp -r "How to add files and paksets.md" "$pkgdir/usr/share/games/simutrans"
#desktop file and icon
install -Dm644 simutrans.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/simutrans.svg"
install -Dm644 simutrans.desktop "$pkgdir/usr/share/applications/simutrans.desktop"
#license
install -Dm644 simutrans/simutrans/license.txt "$pkgdir/usr/share/licenses/simutrans/license.txt"
}
|