summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Florentino Garcia2016-05-19 19:19:09 -0300
committerRenato Florentino Garcia2016-05-19 19:19:09 -0300
commit0baaad06c0da2205f87c2a53753c310e47343625 (patch)
tree04219373872ece5c419b7b7a3a795cd9d4323006
downloadaur-graclus.tar.gz
Version 1.2-1
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD44
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..682d331e612
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Thu May 19 22:18:16 UTC 2016
+pkgbase = graclus
+ pkgdesc = Efficient Graph Clustering Software.
+ pkgver = 1.2
+ pkgrel = 1
+ url = http://www.cs.utexas.edu/users/dml/Software/graclus.html
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = gcc-libs
+ conflicts = metis
+ source = http://www.cs.utexas.edu/users/dml/Software/graclus1.2.tar.gz
+ md5sums = 7e6a81037632f11d52e6800f7212ab2d
+
+pkgname = graclus
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..27c8f95fdb9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Renato Garcia <fgarcia.renato@gmail.com>
+
+pkgname=graclus
+pkgver=1.2
+pkgrel=1
+pkgdesc="Efficient Graph Clustering Software."
+arch=('i686' 'x86_64')
+url="http://www.cs.utexas.edu/users/dml/Software/graclus.html"
+license=('GPL')
+depends=('gcc-libs')
+conflicts=('metis')
+source=("http://www.cs.utexas.edu/users/dml/Software/${pkgname}${pkgver}.tar.gz")
+md5sums=('7e6a81037632f11d52e6800f7212ab2d')
+
+prepare() {
+ cd "${pkgname}${pkgver}"
+
+ sed -i '13 i \
+../libmultilevel.so: $(OBJS)\
+ gcc -shared -Wl,-soname,libmultilevel.so.1 -o $@ $(OBJS)' multilevelLib/Makefile
+
+ sed -i '22 i \
+../libmetis.so: $(OBJS)\
+ gcc -shared -Wl,-soname,libmetis.so.1 -o $@ $(OBJS)' metisLib/Makefile
+
+ sed -i 's/libmetis\.a/libmetis\.so/' programs/Makefile
+ sed -i 's/libmultilevel\.a/libmultilevel\.so/' programs/Makefile
+
+ if [ "$CARCH" = "x86_64" ]; then
+ sed -i 's/-DNUMBITS=32/-DNUMBITS=64/' Makefile.in
+ fi
+}
+
+build() {
+ cd "${pkgname}${pkgver}"
+ make
+}
+
+package() {
+ cd "${pkgname}${pkgver}"
+ install -D -t "${pkgdir}/usr/bin" graclus
+ install -D -t "${pkgdir}/usr/lib" libmetis.so libmultilevel.so
+ install -D -t "${pkgdir}/usr/include/metis" metisLib/*.h
+}