[arch-commits] Commit in libcliquer (7 files)

Antonio Rojas arojas at archlinux.org
Sat Dec 20 09:27:19 UTC 2014


    Date: Saturday, December 20, 2014 @ 10:27:18
  Author: arojas
Revision: 124163

archrelease: copy trunk to community-i686, community-x86_64

Added:
  libcliquer/repos/
  libcliquer/repos/community-i686/
  libcliquer/repos/community-i686/Makefile.patch
    (from rev 124162, libcliquer/trunk/Makefile.patch)
  libcliquer/repos/community-i686/PKGBUILD
    (from rev 124162, libcliquer/trunk/PKGBUILD)
  libcliquer/repos/community-x86_64/
  libcliquer/repos/community-x86_64/Makefile.patch
    (from rev 124162, libcliquer/trunk/Makefile.patch)
  libcliquer/repos/community-x86_64/PKGBUILD
    (from rev 124162, libcliquer/trunk/PKGBUILD)

---------------------------------+
 community-i686/Makefile.patch   |   46 ++++++++++++++++++++++++++++++++++++++
 community-i686/PKGBUILD         |   35 ++++++++++++++++++++++++++++
 community-x86_64/Makefile.patch |   46 ++++++++++++++++++++++++++++++++++++++
 community-x86_64/PKGBUILD       |   35 ++++++++++++++++++++++++++++
 4 files changed, 162 insertions(+)

Copied: libcliquer/repos/community-i686/Makefile.patch (from rev 124162, libcliquer/trunk/Makefile.patch)
===================================================================
--- repos/community-i686/Makefile.patch	                        (rev 0)
+++ repos/community-i686/Makefile.patch	2014-12-20 09:27:18 UTC (rev 124163)
@@ -0,0 +1,46 @@
+diff -ru src/Makefile b/Makefile
+--- src/Makefile	2010-01-22 08:53:21.000000000 +0100
++++ b/Makefile	2014-01-16 14:55:51.977047191 +0100
+@@ -1,24 +1,3 @@
+-
+-##### Configurable options:
+-
+-## Compiler:
+-CC=gcc
+-#CC=cc
+-
+-## Compiler flags:
+-
+-# GCC:  (also -march=pentium etc, for machine-dependent optimizing)
+-CFLAGS=-Wall -O3 -fomit-frame-pointer -funroll-loops
+-
+-# GCC w/ debugging:
+-#CFLAGS=-Wall -g -DINLINE=
+-
+-# Compaq C / Digital C:
+-#CFLAGS=-arch=host -fast
+-
+-# SunOS:
+-#CFLAGS=-fast
+-
+ ## Program options:
+ 
+ # Enable long options for cl (eg. "cl --help"), comment out to disable.
+@@ -29,14 +8,14 @@
+ ##### End of configurable options
+ 
+ 
+-all: cl
++all: libcliquer.so
+ 
+ 
+ testcases: testcases.o cliquer.o graph.o reorder.o
+ 	$(CC) $(LDFLAGS) -o $@ testcases.o cliquer.o graph.o reorder.o
+ 
+-cl: cl.o cliquer.o graph.o reorder.o
+-	$(CC) $(LDFLAGS) -o $@ cl.o cliquer.o graph.o reorder.o
++libcliquer.so: cl.o cliquer.o graph.o reorder.o
++	$(CC) $(LDFLAGS) $(SAGESOFLAGS) -o $@ cl.o cliquer.o graph.o reorder.o
+ 
+ 
+ cl.o testcases.o cliquer.o graph.o reorder.o: cliquer.h set.h graph.h misc.h reorder.h Makefile cliquerconf.h

Copied: libcliquer/repos/community-i686/PKGBUILD (from rev 124162, libcliquer/trunk/PKGBUILD)
===================================================================
--- repos/community-i686/PKGBUILD	                        (rev 0)
+++ repos/community-i686/PKGBUILD	2014-12-20 09:27:18 UTC (rev 124163)
@@ -0,0 +1,35 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=libcliquer
+pkgver=1.21
+pkgrel=1
+pkgdesc="A set of C routines for finding cliques in an arbitrary weighted graph"
+arch=('i686' 'x86_64')
+url="http://users.aalto.fi/~pat/cliquer.html"
+license=('GPL')
+depends=('glibc')
+source=("http://users.aalto.fi/~pat/cliquer/cliquer-$pkgver.tar.gz" 'Makefile.patch')
+md5sums=('ac65de2c89134abe2be36542b9465b16'
+         'a38360e029771417aca9ff542943d6be')
+
+prepare() {
+  cd cliquer-$pkgver
+
+# build shared lib
+  patch -i $srcdir/Makefile.patch
+}
+
+build() {
+  cd cliquer-$pkgver
+
+  export CFLAGS="$CFLAGS -fPIC"
+  export SAGESOFLAGS="-shared -Wl,-soname,libcliquer.so"
+  make
+}
+
+package() {
+  cd cliquer-$pkgver
+  mkdir -p "$pkgdir"/usr/{lib,include/cliquer}
+  install -m644 libcliquer.so "$pkgdir"/usr/lib
+  install -m644 *.h "$pkgdir"/usr/include/cliquer
+}

Copied: libcliquer/repos/community-x86_64/Makefile.patch (from rev 124162, libcliquer/trunk/Makefile.patch)
===================================================================
--- repos/community-x86_64/Makefile.patch	                        (rev 0)
+++ repos/community-x86_64/Makefile.patch	2014-12-20 09:27:18 UTC (rev 124163)
@@ -0,0 +1,46 @@
+diff -ru src/Makefile b/Makefile
+--- src/Makefile	2010-01-22 08:53:21.000000000 +0100
++++ b/Makefile	2014-01-16 14:55:51.977047191 +0100
+@@ -1,24 +1,3 @@
+-
+-##### Configurable options:
+-
+-## Compiler:
+-CC=gcc
+-#CC=cc
+-
+-## Compiler flags:
+-
+-# GCC:  (also -march=pentium etc, for machine-dependent optimizing)
+-CFLAGS=-Wall -O3 -fomit-frame-pointer -funroll-loops
+-
+-# GCC w/ debugging:
+-#CFLAGS=-Wall -g -DINLINE=
+-
+-# Compaq C / Digital C:
+-#CFLAGS=-arch=host -fast
+-
+-# SunOS:
+-#CFLAGS=-fast
+-
+ ## Program options:
+ 
+ # Enable long options for cl (eg. "cl --help"), comment out to disable.
+@@ -29,14 +8,14 @@
+ ##### End of configurable options
+ 
+ 
+-all: cl
++all: libcliquer.so
+ 
+ 
+ testcases: testcases.o cliquer.o graph.o reorder.o
+ 	$(CC) $(LDFLAGS) -o $@ testcases.o cliquer.o graph.o reorder.o
+ 
+-cl: cl.o cliquer.o graph.o reorder.o
+-	$(CC) $(LDFLAGS) -o $@ cl.o cliquer.o graph.o reorder.o
++libcliquer.so: cl.o cliquer.o graph.o reorder.o
++	$(CC) $(LDFLAGS) $(SAGESOFLAGS) -o $@ cl.o cliquer.o graph.o reorder.o
+ 
+ 
+ cl.o testcases.o cliquer.o graph.o reorder.o: cliquer.h set.h graph.h misc.h reorder.h Makefile cliquerconf.h

Copied: libcliquer/repos/community-x86_64/PKGBUILD (from rev 124162, libcliquer/trunk/PKGBUILD)
===================================================================
--- repos/community-x86_64/PKGBUILD	                        (rev 0)
+++ repos/community-x86_64/PKGBUILD	2014-12-20 09:27:18 UTC (rev 124163)
@@ -0,0 +1,35 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=libcliquer
+pkgver=1.21
+pkgrel=1
+pkgdesc="A set of C routines for finding cliques in an arbitrary weighted graph"
+arch=('i686' 'x86_64')
+url="http://users.aalto.fi/~pat/cliquer.html"
+license=('GPL')
+depends=('glibc')
+source=("http://users.aalto.fi/~pat/cliquer/cliquer-$pkgver.tar.gz" 'Makefile.patch')
+md5sums=('ac65de2c89134abe2be36542b9465b16'
+         'a38360e029771417aca9ff542943d6be')
+
+prepare() {
+  cd cliquer-$pkgver
+
+# build shared lib
+  patch -i $srcdir/Makefile.patch
+}
+
+build() {
+  cd cliquer-$pkgver
+
+  export CFLAGS="$CFLAGS -fPIC"
+  export SAGESOFLAGS="-shared -Wl,-soname,libcliquer.so"
+  make
+}
+
+package() {
+  cd cliquer-$pkgver
+  mkdir -p "$pkgdir"/usr/{lib,include/cliquer}
+  install -m644 libcliquer.so "$pkgdir"/usr/lib
+  install -m644 *.h "$pkgdir"/usr/include/cliquer
+}



More information about the arch-commits mailing list