blob: f1e0e3c70099770c1f7c2a3bd4912ceb91c70450 (
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
|
# Maintainer: entrix <invalid@invalid>
# Contributor: HeyCitizen <4637290+InTheMorning@users.noreply.github.com>
# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
# Contributor: Hal Gentz <zegentzy@protonmail.com>
pkgname=openttd-n-ice
_pkgname=openttd
_pkgnamepretty=OpenTTD
_nice_release=122A
pkgver=12.2
pkgrel=1
pkgdesc='OpenTTD with n-ice patches.'
arch=('x86_64')
url='http://www.n-ice.org/openttd/forum/index.php?topic=609.msg3555'
license=('GPL')
depends=(fluidsynth fontconfig hicolor-icon-theme libpng)
optdepends=('openttd-opengfx: free graphics'
'openttd-openmsx: free musicset'
'openttd-opensfx: free soundset')
makedepends=('cmake' 'ninja')
source=("https://cdn.$_pkgname.org/$_pkgname-releases/$pkgver/$_pkgname-$pkgver-source.tar.xz"
"$pkgname-patches.zip::https://www.dropbox.com/s/pn8vepuxi26hj9x/${_pkgnamepretty}_${pkgver}_${_nice_release}_patch.zip?dl=1")
sha256sums=(
'81508f0de93a0c264b216ef56a05f8381fff7bffa6d010121a21490b4dace95c'
'6efe936b6ef605e60372ba565cf91c977eced7096bf4fdbd569af5607adfa56a')
conflicts=('openttd')
prepare() {
cd $_pkgname-$pkgver
sed -i '/sse/d;/SSE/d' CMakeLists.txt
patch -p1 < "../${_pkgnamepretty}_${pkgver}_${_nice_release}_patch/public_${_nice_release}.diff" || true
}
build() {
cmake \
-B build \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_INSTALL_BINDIR=bin \
-D CMAKE_INSTALL_DATADIR=/usr/share \
-G Ninja \
-S $_pkgname-$pkgver
ninja -C build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
mkdir -p "${pkgdir}/usr/share/openttd/baseset/newgrf/"
install -m644 -D "${_pkgnamepretty}_${pkgver}_${_nice_release}_patch/newgrf/innerhighlight.grf" "${pkgdir}/usr/share/openttd/baseset/newgrf/innerhighlight.grf"
}
|