[arch-commits] Commit in mcqd/repos/community-x86_64 (3 files)

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


    Date: Tuesday, November 16, 2021 @ 17:48:26
  Author: arojas
Revision: 1048823

archrelease: copy trunk to community-x86_64

Added:
  mcqd/repos/community-x86_64/PKGBUILD
    (from rev 1048822, mcqd/trunk/PKGBUILD)
  mcqd/repos/community-x86_64/mcqd-silent.patch
    (from rev 1048822, mcqd/trunk/mcqd-silent.patch)
Deleted:
  mcqd/repos/community-x86_64/PKGBUILD

-------------------+
 PKGBUILD          |   59 ++++++++++++++++++++++++++++------------------------
 mcqd-silent.patch |   22 +++++++++++++++++++
 2 files changed, 54 insertions(+), 27 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-16 17:48:12 UTC (rev 1048822)
+++ PKGBUILD	2021-11-16 17:48:26 UTC (rev 1048823)
@@ -1,27 +0,0 @@
-# Maintainer: Antonio Rojas <arojas at archlinux.org>
-
-pkgname=mcqd
-pkgver=1.0.0
-pkgrel=2
-pkgdesc="Maximum Clique Algorithm for finding a maximum clique in an undirected graph"
-arch=(x86_64)
-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')
-
-build() {
-  cd $pkgname-v$pkgver-*
-
-  g++ ${CXXFLAGS} ${LDFLAGS} mcqd.cpp -o mcqd
-}
-
-package() {
-  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
-}
-

Copied: mcqd/repos/community-x86_64/PKGBUILD (from rev 1048822, mcqd/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-11-16 17:48:26 UTC (rev 1048823)
@@ -0,0 +1,32 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=mcqd
+pkgver=1.0.0
+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/'
+license=(GPL3)
+depends=(gcc-libs)
+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
+
+  g++ ${CXXFLAGS} ${LDFLAGS} mcqd.cpp -o mcqd
+}
+
+package() {
+  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
+}

Copied: mcqd/repos/community-x86_64/mcqd-silent.patch (from rev 1048822, mcqd/trunk/mcqd-silent.patch)
===================================================================
--- mcqd-silent.patch	                        (rev 0)
+++ mcqd-silent.patch	2021-11-16 17:48:26 UTC (rev 1048823)
@@ -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