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

Felix Yan felixonmars at gemini.archlinux.org
Mon Nov 22 02:12:20 UTC 2021


    Date: Monday, November 22, 2021 @ 02:12:20
  Author: felixonmars
Revision: 1054196

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: openttd/repos/community-staging-x86_64/PKGBUILD (from rev 1054195, openttd/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2021-11-22 02:12:20 UTC (rev 1054196)
@@ -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.1
+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=('653a511416b0d75af696eae96cf730e95747b476f9b1957759a6d3941eff2d6194dfb4bdb8e5e6cb645b81278ac4d48cf886daaa5796d1f995da490bcd046514')
+
+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