# Maintainer (Arch): Vesa Kaihlavirta # Maintainer (Hyperbola): André Silva # Maintainer: Omar Vega Ramos # parabola changes and rationale: # - removed recommendation for non-free openttd-opensfx pkgname=openttd pkgver=1.9.3 pkgrel=2 pkgrel+=.parabola2 pkgdesc='An engine for running Transport Tycoon Deluxe.' arch=('x86_64') arch+=('i686' 'armv7h') url='https://www.openttd.org' license=('GPL') depends=('libpng' 'sdl' 'icu-parabola' 'fontconfig' 'lzo' 'hicolor-icon-theme' 'desktop-file-utils' 'xz' 'fluidsynth') optdepends=('openttd-opengfx: free graphics') source=("https://proxy.binaries.openttd.org/openttd-releases/${pkgver}/${pkgname}-${pkgver}-source.tar.xz") sha256sums=('1988e17f5b6f4b8f423c849ef1c579c21f678722ae4440f87b27a5fea6385846') build() { cd ${pkgname}-${pkgver} # http://site.icu-project.org/download/61#TOC-Migration-Issues CXXFLAGS+=' -DU_USING_ICU_NAMESPACE=1' ./configure \ --prefix-dir=/usr \ --binary-name=${pkgname} \ --binary-dir=bin \ --data-dir=share/${pkgname} \ --install-dir="${pkgdir}" \ --doc-dir=share/doc/${pkgname} \ --with-fluidsynth \ --menu-name="OpenTTD" \ PKG_CONFIG_PATH="/opt/parabola/icu/lib/pkgconfig/" make } package() { local _icu_ver _icu_ver=$(pacman -S --print-format='%v' icu-parabola) depends+=("icu-parabola>=${_icu_ver}" "icu-parabola<$((${_icu_ver%%.*} + 1))") cd ${pkgname}-${pkgver} make install }