[arch-commits] Commit in 0ad/trunk (PKGBUILD)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Feb 24 08:39:29 UTC 2021


    Date: Wednesday, February 24, 2021 @ 08:39:29
  Author: svenstaro
Revision: 871014

upgpkg: 0ad a24.b-1

Modified:
  0ad/trunk/PKGBUILD

----------+
 PKGBUILD |   51 ++++++++++++++++-----------------------------------
 1 file changed, 16 insertions(+), 35 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-02-24 08:14:53 UTC (rev 871013)
+++ PKGBUILD	2021-02-24 08:39:29 UTC (rev 871014)
@@ -2,65 +2,46 @@
 # Contributor: t3ddy  <t3ddy1988 "at" gmail {dot} com>
 # Contributor: Adrián Chaves Fernández (Gallaecio) <adriyetichaves at gmail.com>
 pkgname=0ad
-pkgver=a23.1
-_pkgver=0.0.23b-alpha
-pkgrel=14
+pkgver=a24.b
+_pkgver=0.0.24b-alpha
+pkgrel=1
 pkgdesc="Cross-platform, 3D and historically-based real-time strategy game"
 arch=('x86_64')
 url="http://play0ad.com/"
 license=('GPL2' 'CCPL')
-depends=('binutils' 'boost-libs' 'curl' 'enet' 'libogg' 'libpng' 'libvorbis'
-         'libxml2' 'openal' 'sdl2' 'wxgtk3' 'zlib' 'libgl' '0ad-data' 'glu'
+depends=('0ad-data' 'binutils' 'boost-libs' 'curl' 'enet' 'libogg' 'libpng' 'libvorbis'
+         'libxml2' 'openal' 'sdl2' 'wxgtk3' 'zlib' 'libgl' 'glu'
          'gloox' 'miniupnpc' 'libminiupnpc.so' 'icu' 'nspr' 'libsodium')
-makedepends=('boost' 'cmake' 'mesa' 'zip' 'python2' 'libsm')
+makedepends=('boost' 'cmake' 'mesa' 'zip' 'libsm' 'rust' 'fmt')
 source=("https://releases.wildfiregames.com/$pkgname-$_pkgver-unix-build.tar.xz"
-        icu68.patch
-        zen2-workaround.patch
-        missing-includes.patch
-        0ad-fcollada.patch)
-sha512sums=('82934313c46c4fd89e3841d5bbf901904abbd2108e9749529d7282bd24ac53b9e6878681c06e6019f4d8ec0e425c28300b0aafc9610a66a331777ffb58ed6135'
-            'f45626e6da1415e7012d9533afe2a936bc015df85fd76b0db279f4a176baf2334557b5402e9e4969d84341a1ca6f72c6168acc709f1c0be1b165e6d58462bf78'
-            '1aaab2a71b363b0acbb6beb724bbb4c4b3a8fc607c7958f65e9653e29dedfc502f84262955d1b5ba5dc54b2c97a3882809967e74dfd3de54ae09ee6b08816a90'
-            '4cd709847f50de291a7eb5f2049e06f6725799a793d845ac40b1ffdd8f3674d426736dc7ea226dc9f261e8edc3c68972edc704f4aa42b05ed37f6866b5680ddd'
-            '06b0641698c89bb0331f5af0254f0e224877580e196fc030bbe37140926c93d5392512f129dfd5922fcc588a28cad1832e94f36a523027678880b5b0522cff34')
+        https://code.wildfiregames.com/file/data/3urss4gcr6ctlswrvjmo/PHID-FILE-j3zreuum7vciwef3zolp/D3590.diff)
+sha512sums=('8173d393eb1bc57c38bef0076ba973ef46c877c06644365189c0887cd3152adba51d26b553e42221fd14343e9830a3a275bfcd9b28f66281e282ea3f247730ea'
+            '1e5b340ac8e00378fe794d86810c2f0e8c7e1b1d4a2beb28507ea2705bba3a44b8fa6fd15600245f2a5907b14af2c73a4d4e2722eab0177d8215a685db67767a')
 
 prepare() {
-  cd "$srcdir/$pkgname-$_pkgver/"
-  sed -i "s/env python/env python2/g" libraries/source/cxxtest-4.4/bin/cxxtestgen
+  cd "$pkgname-$_pkgver"
 
-  patch -Np0 -i "$srcdir"/icu68.patch
-  patch -Np0 -i "$srcdir"/zen2-workaround.patch
-  patch -Np1 -i "$srcdir"/missing-includes.patch
-
-  # https://trac.wildfiregames.com/ticket/5709
-  patch -Np1 -i "$srcdir"/0ad-fcollada.patch
+  patch -Np0 -i "$srcdir"/D3590.diff
 }
 
 build() {
-  cd "$srcdir/$pkgname-$_pkgver/build/workspaces"
+  cd "$pkgname-$_pkgver/build/workspaces"
 
-  unset CPPFLAGS # for le spidermonkey
-
-  # http://site.icu-project.org/download/61#TOC-Migration-Issues
-  CXXFLAGS+=' -DU_USING_ICU_NAMESPACE=1'
-
-  export SDL2_CONFIG="pkg-config sdl2"
   export WX_CONFIG="wx-config-gtk3"
-  ./update-workspaces.sh \
+  ./update-workspaces.sh -j$(nproc) \
       --without-pch \
       --bindir=/usr/bin \
       --libdir=/usr/lib/0ad \
       --datadir=/usr/share/0ad/data
 
-  cd "$srcdir/$pkgname-$_pkgver/build/workspaces/gcc"
+  cd gcc
 
-  verbose=1 make
+  VERBOSE=1 make
 }
 
 package() {
+  cd "$pkgname-$_pkgver"
   install -d "${pkgdir}"/usr/{bin,lib/0ad,share/"${pkgname}"/data}
-  cd "$srcdir/$pkgname-$_pkgver"
-
   install -Dm755 binaries/system/pyrogenesis "${pkgdir}/usr/bin"
   install -Dm755 binaries/system/*.so "${pkgdir}/usr/lib/0ad"
 


More information about the arch-commits mailing list