Subject: [alpine-aports] [PATCH] testing/scotch: new aport

From: Jose Maria Garcia <[email-masked]>
Date: Tue, 21 Nov 2017 00:05:14 +0100

https://www.labri.fr/perso/pelegrin/scotch/
Graph partitioning and much more
---
 testing/scotch/APKBUILD | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 testing/scotch/APKBUILD

diff --git a/testing/scotch/APKBUILD b/testing/scotch/APKBUILD
new file mode 100644
index 0000000000..380d36e18f
--- /dev/null
+++ b/testing/scotch/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: Jose Maria Garcia <[email-masked]>
+# Maintainer: Jose Maria Garcia <[email-masked]>
+pkgname=scotch
+pkgver=6.0.4
+pkgrel=0
+pkgdesc="Graph partitioning and much more"
+url="https://www.labri.fr/perso/pelegrin/scotch/"
+arch="all"
+license="CeCILL-C"
+depends="zlib"
+makedepends="cmake zlib-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://gforge.inria.fr/frs/download.php/file/34618/scotch_6.0.4.tar.gz"
+builddir="$srcdir/${pkgname}_${pkgver}/src/"
+
+prepare() {
+	cd "${builddir}"
+        ARCH=`uname -m | sed s/_/-/g`
+	echo $ARCH
+	cp Make.inc/Makefile.inc.`uname -m | sed s/_/-/g`_pc_linux2 Makefile.inc
+}
+
+build() {
+   	cd "${builddir}"
+   	make scotch prefix=/usr
+   	make esmumps prefix=/usr   	
+}
+
+package() {
+	mkdir -p ${pkgdir}/usr
+	cd "${builddir}"
+        make install prefix="${pkgdir}/usr"
+
+}
+sha512sums="0fcf639ab1a09451256444005f1a4a739403159e3ab22c34fbcedc481be387cd4c86be6fb029b4b5816220564f64f662434bf7f1d3921ed18be081ae2a7a9ee2  scotch_6.0.4.tar.gz"
-- 
2.15.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---