termux-packages/x11-packages/openttd/build.sh
Henrik Grimler 04d9d0adf0
Bump all packages depending on libicu after libicu update (#759)
* Update termux-packages submodule

* libvte: bump after libicu update

* openttd: bump after libicu update

* qt5-qtbase: bump after libicu update

* webkit2gtk: bump after libicu update

* otter-browser: bump after libicu update

And explicitly add libicu to list of dependencies.
2022-04-18 14:51:12 +05:30

23 lines
823 B
Bash

TERMUX_PKG_HOMEPAGE=https://www.openttd.org/
TERMUX_PKG_DESCRIPTION="An engine for running Transport Tycoon Deluxe"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=1.10.3
TERMUX_PKG_REVISION=9
TERMUX_PKG_SRCURL=https://github.com/OpenTTD/OpenTTD/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=eb57249c221b9b7cb1c86d81e60bbc54661d7e2ead50f529a2c1d733f6bbf381
TERMUX_PKG_DEPENDS="desktop-file-utils, fontconfig, hicolor-icon-theme, libicu, liblzma, liblzo, libpng, openttd-gfx, openttd-msx, openttd-sfx, sdl"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_configure() {
CXXFLAGS+=" -DU_USING_ICU_NAMESPACE=1"
./configure \
--prefix-dir="$TERMUX_PREFIX" \
--binary-name=openttd \
--binary-dir=bin \
--data-dir=share/openttd \
--doc-dir=share/doc/openttd \
--menu-name=OpenTTD
}