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

Sven-Hendrik Haase svenstaro at archlinux.org
Thu Jan 2 10:43:19 UTC 2020


    Date: Thursday, January 2, 2020 @ 10:43:18
  Author: svenstaro
Revision: 546031

upgpkg: springlobby 0.269-1

Modified:
  springlobby/trunk/PKGBUILD

----------+
 PKGBUILD |   32 ++++++++++++++++++++------------
 1 file changed, 20 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-02 10:34:50 UTC (rev 546030)
+++ PKGBUILD	2020-01-02 10:43:18 UTC (rev 546031)
@@ -1,9 +1,9 @@
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Maintainer: Sven-Hendrik Haase <svenstaro at gmail.com>
 # Contributor: DuGi <dugi at irc.pl>
 
 pkgname=springlobby
-pkgver=0.267
-pkgrel=5
+pkgver=0.269
+pkgrel=1
 pkgdesc="A free cross-platform lobby client for the Spring RTS project"
 arch=('x86_64')
 url="http://springlobby.info/"
@@ -11,21 +11,29 @@
 depends=('hicolor-icon-theme' 'wxgtk3' 'curl' 'libtorrent-rasterbar' 'boost-libs'
          'alure' 'libsm')
 optdepends=('sdl' 'sdl_sound' 'sdl_mixer')
-makedepends=('boost' 'cmake')
-source=(https://springlobby.info/tarballs/springlobby-${pkgver}.tar.bz2
-        springlobby-wxgtk-3.1.patch)
-sha512sums=('6127bd7377f9a843b23df6dae7a07af1122f6ec5fa13cd8d16c0c7a3cc84e1f7af2fb7df929f904ee0b4e3abf12ae1e525ffb39b2afa0215433209054cf0de5f'
+makedepends=('boost' 'cmake' 'git')
+source=("git+https://github.com/springlobby/springlobby.git#tag=$pkgver"
+        "git+https://github.com/spring/pr-downloader.git"
+        "springlobby-wxgtk-3.1.patch")
+sha512sums=('SKIP'
+            'SKIP'
             'bf70703c5f001bfc92699d4c21e6ca63b35994319f1096e50b07dba4ceb48cd7d67798fa1668c3c654b0372465a5ad383d9cbae9488f08dea6d78dee8901d418')
 
 prepare() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   patch -p1 -i ../springlobby-wxgtk-3.1.patch # Fix build with wxgtk 3.1
+
+  git submodule init
+  git config submodule."src/downloader/lib".url "$srcdir"/pr-downloader
+  git submodule update
+
+  mkdir build
 }
 
 build() {
-  cd $srcdir/${pkgname}-${pkgver}
+  cd $pkgname/build
 
-  cmake . \
+  cmake .. \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3
   make
@@ -32,9 +40,9 @@
 }
 
 package() {
-  cd $srcdir/${pkgname}-${pkgver}
+  cd $pkgname/build
 
-  make DESTDIR=$pkgdir install
+  DESTDIR="$pkgdir" make install
 }
 
 # vim: sw=2:ts=2 et:



More information about the arch-commits mailing list