61 lines
2.1 KiB
Bash
61 lines
2.1 KiB
Bash
# Template file for 'openttd'
|
|
pkgname=openttd
|
|
version=14.0
|
|
revision=1
|
|
_gfxver=7.1
|
|
_sfxver=1.0.3
|
|
_msxver=0.4.2
|
|
create_wrksrc=yes
|
|
build_wrksrc=openttd-$version
|
|
build_style=cmake
|
|
build_helper=qemu
|
|
configure_args="
|
|
-DCMAKE_BUILD_TYPE=Release
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
-DCMAKE_INSTALL_BINDIR=bin
|
|
-DCMAKE_INSTALL_DATADIR=/usr/share
|
|
-DCMAKE_INSTALL_DOCDIR=share/doc/openttd
|
|
"
|
|
|
|
hostmakedepends="pkg-config unzip tar"
|
|
makedepends="SDL2-devel libcurl-devel freetype-devel fontconfig-devel
|
|
harfbuzz-devel icu-devel libpng-devel liblzma-devel fluidsynth-devel"
|
|
depends="hicolor-icon-theme fluidsynth soundfont-fluid"
|
|
short_desc="Open Source version of Transport Tycoon Deluxe"
|
|
maintainer="Emil Tomczyk <emru@emru.xyz>"
|
|
license="GPL-2.0-only, Zlib"
|
|
homepage="https://www.openttd.org/"
|
|
distfiles="https://cdn.openttd.org/openttd-releases/${version}/openttd-${version}-source.tar.xz
|
|
https://cdn.openttd.org/opengfx-releases/${_gfxver}/opengfx-${_gfxver}-all.zip
|
|
https://cdn.openttd.org/opensfx-releases/${_sfxver}/opensfx-${_sfxver}-all.zip
|
|
https://cdn.openttd.org/openmsx-releases/${_msxver}/openmsx-${_msxver}-all.zip"
|
|
checksum="96f76ab858816a5e30038ade0692e6ebf350b9f70bf19c7b48dda845c88418b1
|
|
928fcf34efd0719a3560cbab6821d71ce686b6315e8825360fba87a7a94d7846
|
|
e0a218b7dd9438e701503b0f84c25a97c1c11b7c2f025323fb19d6db16ef3759
|
|
5a4277a2e62d87f2952ea5020dc20fb2f6ffafdccf9913fbf35ad45ee30ec762"
|
|
|
|
post_extract() {
|
|
bsdtar xf opengfx-${_gfxver}.tar
|
|
bsdtar xf opensfx-${_sfxver}.tar
|
|
bsdtar xf openmsx-${_msxver}.tar
|
|
rm opengfx-${_gfxver}.tar
|
|
rm opensfx-${_sfxver}.tar
|
|
rm openmsx-${_msxver}.tar
|
|
}
|
|
|
|
post_build() {
|
|
cp ../opengfx-${_gfxver}/*.grf build/baseset
|
|
cp ../opengfx-${_gfxver}/opengfx.obg build/baseset
|
|
cp ../opensfx-${_sfxver}/opensfx.* build/baseset
|
|
cp -r ../openmsx-${_msxver} build/baseset
|
|
}
|
|
|
|
post_install() {
|
|
vlicense ../opengfx-${_gfxver}/license.txt LICENSE-gfx
|
|
vlicense ../opensfx-${_sfxver}/license.txt LICENSE-sfx
|
|
vlicense ../openmsx-${_msxver}/license.txt LICENSE-msx
|
|
vdoc ../opengfx-${_gfxver}/readme.txt README-gfx
|
|
vdoc ../opensfx-${_sfxver}/readme.txt README-sfx
|
|
vdoc ../openmsx-${_msxver}/readme.txt README-msx
|
|
}
|