blob: db2ac420e1f5d653635145fdec455f81b6ae541b (
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
|
#!/bin/sh
NAME="openttd"
DESC="Open source version of the Transport Tycoon Deluxe simulator"
MAKEDEPS="cmake fontconfig fluidsynth freetype2 icu libpng lzo ninja sdl2 xz zlib"
PKG_VER=12.2
SOURCE="https://cdn.openttd.org/openttd-releases/$PKG_VER/openttd-$PKG_VER-source.tar.xz"
build() {
cmake -B build \
-G "Ninja" \
-DCMAKE_INSTALL_BINDIR=bin \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_DATADIR=share/games \
-DGLOBAL_DATA_DIR=share/games/openttd \
-DCMAKE_BUILD_TYPE=Release \
-DReleaseBuild=ON
cmake --build build
}
package() {
DESTDIR="$PKG_DEST" cmake --build build --target install
}
|