[arch-commits] Commit in widelands/repos (2 files)
Felix Yan
felixonmars at gemini.archlinux.org
Thu Apr 14 22:55:48 UTC 2022
Date: Thursday, April 14, 2022 @ 22:55:48
Author: felixonmars
Revision: 1186372
archrelease: copy trunk to community-staging-x86_64
Added:
widelands/repos/community-staging-x86_64/
widelands/repos/community-staging-x86_64/PKGBUILD
(from rev 1186371, widelands/trunk/PKGBUILD)
----------+
PKGBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
Copied: widelands/repos/community-staging-x86_64/PKGBUILD (from rev 1186371, widelands/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-04-14 22:55:48 UTC (rev 1186372)
@@ -0,0 +1,54 @@
+# Maintainer: Sven-Hendrik Haase <svenstaro at archlinux.org>
+# Contributor: Arkham <arkham at archlinux dot us>
+# Contributor: Christoph Zeiler <rabyte*gmail>
+
+pkgname=widelands
+pkgver=1.0
+epoch=1
+pkgrel=5
+pkgdesc="A realtime strategy game with emphasis on economy and transport"
+arch=('x86_64')
+url="https://widelands.org/"
+license=('GPL')
+depends=('sdl2_mixer' 'sdl2_image' 'sdl2_net' 'sdl2_ttf' 'sdl2_gfx' 'lua' 'glew' 'python' 'dbus')
+makedepends=('cmake' 'boost' 'mesa' 'ninja' 'git')
+replaces=('widelands-data')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/widelands/widelands/archive/refs/tags/v${pkgver}.tar.gz"
+ https://github.com/widelands/widelands/commit/316eaea209754368a57f445ea4dd016ecf8eded6.patch)
+sha512sums=('1092750944a8669682097dfbd2b578cdb8fab377f32cb81ce8d85b9d9b2e8ae8c4c73500c0a89be649b360fd7e086e19595eba37cecb8d64679e46f7da13e46e'
+ '1b236bf06173aeadd07a3b0074b5ec3e6577923e4c6595587504f73d2c729586f03cc5a8fd256a0cb98ed7f586deb09df534fc8300f15d3a259e64435838e317')
+
+prepare() {
+ cd $pkgname-$pkgver
+ patch -Np1 -i "$srcdir"/316eaea209754368a57f445ea4dd016ecf8eded6.patch
+}
+
+build() {
+ cd $pkgname-$pkgver
+
+ cmake \
+ -GNinja \
+ -Bbuild \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DWL_INSTALL_BASEDIR=/usr \
+ -DWL_INSTALL_DATADIR=/usr/share/widelands
+ ninja -C build
+}
+
+package() {
+ cd $pkgname-$pkgver
+
+ DESTDIR="$pkgdir" ninja -C build install
+
+ # Fix wrong locations of some installed files (upstream bug)
+ # See also FS#72240
+ mkdir -p "$pkgdir"/usr/bin
+ mv "$pkgdir"/usr/{widelands,wl_map_object_info,wl_map_info,wl_create_spritesheet} "$pkgdir"/usr/bin
+ mv "$pkgdir"/usr/{VERSION,ChangeLog,CREDITS} "$pkgdir"/usr/share/widelands
+ mv "$pkgdir"/share/* "$pkgdir"/usr/share/
+
+ mkdir -p "$pkgdir"/usr/share/licenses/$pkgname
+ mv "$pkgdir"/usr/COPYING "$pkgdir"/usr/share/licenses/$pkgname
+
+}
More information about the arch-commits
mailing list