[arch-commits] Commit in openttd/repos (2 files)

Felix Yan felixonmars at gemini.archlinux.org
Thu Apr 14 22:12:14 UTC 2022


    Date: Thursday, April 14, 2022 @ 22:12:13
  Author: felixonmars
Revision: 1186316

archrelease: copy trunk to community-staging-x86_64

Added:
  openttd/repos/community-staging-x86_64/
  openttd/repos/community-staging-x86_64/PKGBUILD
    (from rev 1186315, openttd/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: openttd/repos/community-staging-x86_64/PKGBUILD (from rev 1186315, openttd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2022-04-14 22:12:13 UTC (rev 1186316)
@@ -0,0 +1,37 @@
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Vesa Kaihlavirta <vegai at iki.fi>
+
+pkgname=openttd
+pkgver=12.2
+pkgrel=2
+pkgdesc='Engine for running Transport Tycoon Deluxe'
+arch=(x86_64)
+url='https://www.openttd.org'
+license=(GPL)
+depends=(fluidsynth fontconfig hicolor-icon-theme libpng)
+makedepends=(cmake ninja)
+optdepends=('openttd-opengfx: free graphics'
+            'openttd-opensfx: free soundset')
+source=("https://cdn.$pkgname.org/$pkgname-releases/$pkgver/$pkgname-$pkgver-source.tar.xz")
+b2sums=('a2c0192a2d4ed149f7c6584032b46483eb74d2d7d2ced16f1d0d3e638c4acef184cd8b013b855a01750dbb570d37bb6ed95f04d16c1580e4b3777ea3b90cfee1')
+
+prepare() {
+  sed -i '/sse/d;/SSE/d' $pkgname-$pkgver/CMakeLists.txt
+}
+
+build() {
+  cmake \
+    -B build \
+    -D CMAKE_BUILD_TYPE=Release \
+    -D CMAKE_INSTALL_PREFIX=/usr \
+    -D CMAKE_INSTALL_BINDIR=bin \
+    -D CMAKE_INSTALL_DATADIR=/usr/share \
+    -G Ninja \
+    -S $pkgname-$pkgver
+  ninja -C build
+}
+
+package() {
+  DESTDIR="$pkgdir" ninja -C build install
+}



More information about the arch-commits mailing list