[arch-commits] Commit in warzone2100/repos (extra-x86_64 extra-x86_64/PKGBUILD)

Laurent Carlier lcarlier at gemini.archlinux.org
Fri Nov 5 09:32:18 UTC 2021


    Date: Friday, November 5, 2021 @ 09:32:18
  Author: lcarlier
Revision: 1037177

archrelease: copy trunk to extra-x86_64

Added:
  warzone2100/repos/extra-x86_64/
  warzone2100/repos/extra-x86_64/PKGBUILD
    (from rev 1037176, warzone2100/trunk/PKGBUILD)

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

Copied: warzone2100/repos/extra-x86_64/PKGBUILD (from rev 1037176, warzone2100/trunk/PKGBUILD)
===================================================================
--- extra-x86_64/PKGBUILD	                        (rev 0)
+++ extra-x86_64/PKGBUILD	2021-11-05 09:32:18 UTC (rev 1037177)
@@ -0,0 +1,37 @@
+# Maintainer: Vesa Kaihlavirta <vegai at iki.fi>
+# Contributor: Angelo Theodorou <encelo at users.sourceforge.net>
+
+pkgname=warzone2100
+pkgver=4.2.0
+pkgrel=1
+pkgdesc="3D realtime strategy game on a future Earth"
+url="https://wz2100.net/"
+arch=('x86_64')
+license=('GPL')
+depends=('sdl2' 'openal' 'libvorbis' 'libtheora' 'libsodium' 'physfs' 'sqlite' 'freetype2')
+makedepends=('zip' 'unzip' 'asciidoc' 'mesa' 'vulkan-headers' 'shaderc' 'cmake' 'ninja')
+source=(${pkgname}-${pkgver}_src.tar.xz::https://github.com/Warzone2100/warzone2100/releases/download/${pkgver}/${pkgname}_src.tar.xz)
+sha256sums=('d4cefbcee02aba77c08cad89beed3c67b8a708c741617f76026c8c0fd79ab9ef')
+
+prepare() {
+  rm -rf build && mkdir -p build
+}
+
+build() {
+  cd build
+
+  cmake -G Ninja ../${pkgname} \
+    -DCMAKE_INSTALL_PREFIX=/usr \
+    -DCMAKE_INSTALL_LIBDIR=lib \
+    -DWZ_DISTRIBUTOR="ArchLinux"
+  ninja
+}
+
+package() {
+  cd build
+
+  DESTDIR="${pkgdir}" ninja install
+
+  ## ??? WTF ???
+  rm "${pkgdir}"/usr/bin/.portable
+}



More information about the arch-commits mailing list