[arch-commits] Commit in openttd/repos/community-x86_64 (PKGBUILD PKGBUILD)

Laurent Carlier lcarlier at archlinux.org
Mon Apr 12 07:38:28 UTC 2021


    Date: Monday, April 12, 2021 @ 07:38:28
  Author: lcarlier
Revision: 915857

archrelease: copy trunk to community-x86_64

Added:
  openttd/repos/community-x86_64/PKGBUILD
    (from rev 915856, openttd/trunk/PKGBUILD)
Deleted:
  openttd/repos/community-x86_64/PKGBUILD

----------+
 PKGBUILD |   68 ++++++++++++++++++++++++++-----------------------------------
 1 file changed, 29 insertions(+), 39 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-12 07:38:23 UTC (rev 915856)
+++ PKGBUILD	2021-04-12 07:38:28 UTC (rev 915857)
@@ -1,39 +0,0 @@
-# Maintainer: Vesa Kaihlavirta <vegai at iki.fi>
-
-pkgname=openttd
-pkgver=1.10.3
-pkgrel=2
-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")
-sha512sums=('d1cd535e8e49f0ac147704341287af1b16bde6725fd9152dd36dcb780559b400da8bb31c4e8eb665a0d11e9b1f5bf8a96be0f97f7a85bd967eec534fdd3dd0d4')
-
-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
-}

Copied: openttd/repos/community-x86_64/PKGBUILD (from rev 915856, openttd/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-04-12 07:38:28 UTC (rev 915857)
@@ -0,0 +1,29 @@
+# Maintainer: Vesa Kaihlavirta <vegai at iki.fi>
+
+pkgname=openttd
+pkgver=1.11.0
+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')
+makedepends=('cmake' 'ninja')
+optdepends=('openttd-opengfx: free graphics' 
+            'openttd-opensfx: free soundset')
+source=("https://proxy.binaries.openttd.org/openttd-releases/${pkgver}/${pkgname}-${pkgver}-source.tar.xz")
+sha512sums=('ed3b305a1081552181f291d24a301b360b815d310704d1346fa191970121382fe745e245b04fa13e9560694a81084ae9302cf5800cd94f0fdc93414a1fbccc9d')
+
+build() {
+  cmake -G Ninja -B build -S ${pkgname}-${pkgver} \
+     -DCMAKE_INSTALL_PREFIX=/usr \
+     -DCMAKE_INSTALL_BINDIR=bin \
+     -DCMAKE_INSTALL_DATADIR=/usr/share \
+     -DGLOBAL_DATA_DIR=/usr/share/openttd
+
+  ninja -C build
+}
+
+package() {
+  DESTDIR="${pkgdir}" ninja -C build install
+}



More information about the arch-commits mailing list