blob: 56dfa8a5e8ba3a272364586306ba8a5aa16ca75c (
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
|
# Maintainer: Stitchless
# Based on the 'community/openttd' PKGBUILD by Vesa Kaihlavirta <vegai@iki.fi>, Alexander F. Rødseth <xyproto@archlinux.org>, and Laurent Carlier <lordheavym@gmail.com>
pkgname=openttd-jgrpp
pkgver=0.63.2
pkgrel=1
pkgdesc="Engine for running Transport Tycoon Deluxe with JGR's patch pack"
arch=(x86_64)
url='http://www.tt-forums.net/viewtopic.php?f=33&t=73469'
license=(GPL-3.0-only)
makedepends=(cmake ninja)
depends=(fluidsynth fontconfig hicolor-icon-theme lzo)
options=(!debug !lto)
source=("https://github.com/JGRennison/OpenTTD-patches/archive/jgrpp-$pkgver.tar.gz")
b2sums=('e734248e2e9158506059de41ada30cc2c9854c38455f1a753b85d23bd75a1be730c0ff4ef0225fe068a3fcfd7bc3cff04d922971d8b99ad29da8331346f4a783')
_dirname=OpenTTD-patches-jgrpp
build() {
cmake \
-B build \
-D CMAKE_BUILD_TYPE=Release \
-D BINARY_NAME="$pkgname" \
-D CMAKE_INSTALL_BINDIR="bin" \
-D CMAKE_INSTALL_DATADIR="/usr/share" \
-D CMAKE_INSTALL_PREFIX="/usr" \
-D PERSONAL_DIR=".$pkgname" \
-G Ninja \
-S "$_dirname-$pkgver"
ninja -C build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
sed -i "s|^Name=OpenTTD+JGRPP$|Name=OpenTTD (JGR Patch Pack)|g" "$pkgdir/usr/share/applications/$pkgname.desktop"
}
|