pkgbuilds/openttd/PKGBUILD
Archlinux-Jerry Build Bot 8f8249fab5 update: openttd to 1.10.3
2020-08-15 01:40:19 +08:00

46 lines
1.4 KiB
Bash

# Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
pkgname=openttd
pkgver=1.10.3
pkgrel=1
pkgdesc='An engine for running Transport Tycoon Deluxe.'
arch=('x86_64')
url='https://www.openttd.org'
license=('GPL')
depends=('libpng' 'sdl2' 'icu' 'fontconfig' 'lzo' 'hicolor-icon-theme' 'desktop-file-utils' 'xz' 'fluidsynth')
optdepends=('openttd-opengfx: free graphics'
'openttd-opensfx: free soundset')
source=("https://proxy.binaries.openttd.org/openttd-releases/${pkgver}/${pkgname}-${pkgver}-source.tar.xz"
"0001-change-network-server.patch")
sha512sums=('d1cd535e8e49f0ac147704341287af1b16bde6725fd9152dd36dcb780559b400da8bb31c4e8eb665a0d11e9b1f5bf8a96be0f97f7a85bd967eec534fdd3dd0d4'
'86e8eb8cf85996171f0516d2052e745ec13081cc96e8786832868c0e5190e8f08f569892ebd0076259bd6717d77236bb45f21097234cc3723153816db9b3197d')
prepare() {
cd ${pkgname}-${pkgver}
patch -p1 -i ../0001-change-network-server.patch
}
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"
make
}
package() {
cd ${pkgname}-${pkgver}
make install
}