termux-packages/x11-packages/openttd/build.sh

23 lines
859 B
Bash
Raw Normal View History

2019-06-30 00:08:05 +02:00
TERMUX_PKG_HOMEPAGE=https://www.openttd.org/
TERMUX_PKG_DESCRIPTION="An engine for running Transport Tycoon Deluxe"
TERMUX_PKG_LICENSE="GPL-2.0"
2020-05-14 00:01:15 +02:00
TERMUX_PKG_MAINTAINER="Leonid Pliushch <leonid.pliushch@gmail.com>"
2020-06-22 13:32:11 +02:00
TERMUX_PKG_VERSION=1.10.2
2020-08-14 01:13:35 +02:00
TERMUX_PKG_REVISION=7
2019-06-30 00:08:05 +02:00
TERMUX_PKG_SRCURL=https://github.com/OpenTTD/OpenTTD/archive/$TERMUX_PKG_VERSION.tar.gz
2020-06-22 13:32:11 +02:00
TERMUX_PKG_SHA256=02cbd81b3d511c52c73c2a7f8938bfe3bfa16085b63f5d3f8e85f1d2ffbcc5cf
2019-06-30 00:28:24 +02:00
TERMUX_PKG_DEPENDS="desktop-file-utils, fontconfig, hicolor-icon-theme, libicu, liblzma, liblzo, libpng, openttd-gfx, openttd-msx, openttd-sfx, sdl"
2019-06-30 00:08:05 +02:00
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_configure() {
CXXFLAGS+=" -DU_USING_ICU_NAMESPACE=1"
2019-07-18 00:52:13 +02:00
2019-06-30 00:08:05 +02:00
./configure \
--prefix-dir="$TERMUX_PREFIX" \
--binary-name=openttd \
--binary-dir=bin \
--data-dir=share/openttd \
--doc-dir=share/doc/openttd \
--menu-name=OpenTTD
}