diff options
author | bill-auger <mr.j.spam.me@gmail.com> | 2024-02-25 13:21:41 -0500 |
---|---|---|
committer | bill-auger <mr.j.spam.me@gmail.com> | 2024-02-25 20:25:47 -0500 |
commit | 6e206aa1dd2f1c7ce20d08d01817ecda7769d1db (patch) | |
tree | 9c7bef5ecec143b8a5f2dce0d7c8625769065b4c | |
parent | 877d8d94191ad0273ee7c13662c3e463fba12e3f (diff) |
openttd: upgrade to v13.4
-rw-r--r-- | libre/openttd/PKGBUILD | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/libre/openttd/PKGBUILD b/libre/openttd/PKGBUILD index 3d9f4aace..b1abe2cb3 100644 --- a/libre/openttd/PKGBUILD +++ b/libre/openttd/PKGBUILD @@ -1,6 +1,8 @@ # Maintainer (arch): Vesa Kaihlavirta <vegai@iki.fi> # Contributor: André Silva <emulatorman@hyperbola.info> # Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> +# Contributor: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> + # parabola changes and rationale: # - removed recommendation for non-free openttd-opensfx @@ -9,42 +11,39 @@ # make transition easier for Parabola contributors. See the comments in # the icu-*-compat PKGBUILDs for more details. + pkgname=openttd -pkgver=1.9.3 +pkgver=13.4 pkgrel=2 -pkgrel+=.parabola7 -pkgdesc='An engine for running Transport Tycoon Deluxe.' -arch=('x86_64') -arch+=('i686' 'armv7h') +pkgrel+=.parabola1 +pkgdesc='Engine for running Transport Tycoon Deluxe' +arch=(x86_64) +arch+=(i686 armv7h) url='https://www.openttd.org' -license=('GPL') -depends=('libpng' 'sdl' 'fontconfig' 'lzo' 'hicolor-icon-theme' 'desktop-file-utils' 'xz' 'fluidsynth') +license=(GPL) +depends=(fluidsynth fontconfig hicolor-icon-theme) depends+=('libicui18n.so' 'libicuuc.so') +makedepends=(cmake ninja) optdepends=('openttd-opengfx: free graphics') -source=("https://proxy.binaries.openttd.org/openttd-releases/${pkgver}/${pkgname}-${pkgver}-source.tar.xz") -sha256sums=('1988e17f5b6f4b8f423c849ef1c579c21f678722ae4440f87b27a5fea6385846') +source=("https://cdn.$pkgname.org/$pkgname-releases/$pkgver/$pkgname-$pkgver-source.tar.xz") +b2sums=('0ef635e40fe47185168bd13e4b8ce24a8ff9c4afe3eced6197298986127ee196a6dcb379643bbb1de9bb552e71cda5df5b5b35006ed2b43d6e33e8513b1cd550') -build() { - cd ${pkgname}-${pkgver} +build() { # 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 + cmake \ + -B build \ + -D CMAKE_BUILD_TYPE=Release \ + -D CMAKE_INSTALL_BINDIR=bin \ + -D CMAKE_INSTALL_DATADIR=/usr/share \ + -D CMAKE_INSTALL_PREFIX=/usr \ + -G Ninja \ + -S $pkgname-$pkgver + ninja -C build } package() { - cd ${pkgname}-${pkgver} - - make install + DESTDIR="$pkgdir" ninja -C build install } |