[arch-commits] Commit in mcqd/trunk (PKGBUILD mcqd-silent.patch)

Antonio Rojas arojas at gemini.archlinux.org
Tue Nov 16 17:48:13 UTC 2021


    Date: Tuesday, November 16, 2021 @ 17:48:12
  Author: arojas
Revision: 1048822

Silence debug output

Added:
  mcqd/trunk/mcqd-silent.patch
Modified:
  mcqd/trunk/PKGBUILD

-------------------+
 PKGBUILD          |   21 +++++++++++++--------
 mcqd-silent.patch |   22 ++++++++++++++++++++++
 2 files changed, 35 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-16 17:14:43 UTC (rev 1048821)
+++ PKGBUILD	2021-11-16 17:48:12 UTC (rev 1048822)
@@ -2,26 +2,31 @@
 
 pkgname=mcqd
 pkgver=1.0.0
-pkgrel=2
-pkgdesc="Maximum Clique Algorithm for finding a maximum clique in an undirected graph"
+pkgrel=3
+pkgdesc='Maximum Clique Algorithm for finding a maximum clique in an undirected graph'
 arch=(x86_64)
-url="http://www.sicmm.org/~konc/maxclique/"
+url='http://www.sicmm.org/~konc/maxclique/'
 license=(GPL3)
 depends=(gcc-libs)
-source=($pkgname-$pkgver.tar.gz::"https://gitlab.com/janezkonc/mcqd/repository/v$pkgver/archive.tar.gz")
-sha256sums=('292931d9c302099d4f00e8cac1af9197f1fb8807cdef922fede525a6e8a49184')
+source=(https://gitlab.com/janezkonc/mcqd/-/archive/v$pkgver/$pkgname-v$pkgver.tar.bz2
+        mcqd-silent.patch)
+sha256sums=('e694e62a320f9a0522a0d72b86ec17872f1306f5e989c4f0e93184e519139b93'
+            '89b186a032d3b2e542c38ab601a9c5b8ed11f0385a3473fece3778409e9c7045')
 
+prepare() {
+  patch -d $pkgname-v$pkgver < mcqd-silent.patch # Silence debug output
+}
+
 build() {
-  cd $pkgname-v$pkgver-*
+  cd $pkgname-v$pkgver
 
   g++ ${CXXFLAGS} ${LDFLAGS} mcqd.cpp -o mcqd
 }
 
 package() {
-  cd $pkgname-v$pkgver-*
+  cd $pkgname-v$pkgver
 
   install -Dm755 mcqd "$pkgdir"/usr/bin/mcqd
   install -Dm644 mcqd.h "$pkgdir"/usr/include/mcqd.h
   install -D COPYING "$pkgdir"/usr/share/licenses/mcqd/COPYING
 }
-

Added: mcqd-silent.patch
===================================================================
--- mcqd-silent.patch	                        (rev 0)
+++ mcqd-silent.patch	2021-11-16 17:48:12 UTC (rev 1048822)
@@ -0,0 +1,22 @@
+--- mcqd.h.orig	2016-09-01 15:17:09.000000000 -0600
++++ mcqd.h	2019-07-08 21:36:57.194309581 -0600
+@@ -247,7 +247,9 @@ void Maxclique::expand(Vertices R) {
+         expand(Rp);
+       }
+       else if (Q.size() > QMAX.size()) { 
++#ifdef DBG
+         std::cout << "step = " << pk << " current max. clique size = " << Q.size() << std::endl; 
++#endif
+ 	QMAX = Q;
+       }    
+       Rp.dispose();
+@@ -279,7 +281,9 @@ void Maxclique::expand_dyn(Vertices R) {
+ 	level--;
+       }
+       else if (Q.size() > QMAX.size()) { 
++#ifdef DBG
+         std::cout << "step = " << pk << " current max. clique size = " << Q.size() << std::endl; 
++#endif
+ 	QMAX = Q;
+       }    
+       Rp.dispose();



More information about the arch-commits mailing list