summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/scotch/PKGBUILD27
1 files changed, 14 insertions, 13 deletions
diff --git a/pcr/scotch/PKGBUILD b/pcr/scotch/PKGBUILD
index 5d614dac8..dfab927ec 100644
--- a/pcr/scotch/PKGBUILD
+++ b/pcr/scotch/PKGBUILD
@@ -1,21 +1,21 @@
-# Maintainer (Arch): Samuel Williams <ioquatix>
+# Maintainer (AUR): Samuel Williams <ioquatix>
pkgname=scotch
-pkgver=6.0.4
-_downloadnum=34618 # gforge is insane
-pkgrel=2
+pkgver=6.0.6
+pkgrel=1
pkgdesc="Software package and libraries for graph, mesh and hypergraph partitioning, static mapping, and sparse matrix block ordering. This is the all-inclusive version (MPI/serial/esmumps)."
url="http://www.labri.fr/perso/pelegrin/scotch/"
license=("custom:CeCILL-C")
depends=('zlib' 'openmpi' 'bzip2')
provides=('ptscotch' 'ptscotch-openmpi' 'scotch_esmumps' 'scotch_ptesmumps')
conflicts=('ptscotch-openmpi' 'scotch_esmumps' 'scotch_esmumps5')
-arch=('i686' 'x86_64' 'armv7h')
-source=("http://gforge.inria.fr/frs/download.php/file/${_downloadnum}/${pkgname}_${pkgver}.tar.gz")
-sha256sums=('f53f4d71a8345ba15e2dd4e102a35fd83915abf50ea73e1bf6efe1bc2b4220c7')
-
+arch=('i686' 'x86_64')
+arch+=('armv7h')
+source=("$pkgname-$pkgver.tar.gz::https://gitlab.inria.fr/scotch/scotch/-/archive/v${pkgver}/${pkgname}-v${pkgver}.tar.gz")
+sha256sums=('e932b4c04636fcf5d21b9a76376868de052c9b000bdaf96f8967dcec61bdaa10')
+
prepare() {
- cd "${srcdir}/${pkgname}_${pkgver}/src"
+ cd "${srcdir}/${pkgname}-v${pkgver}/src"
# Apply patch to fix shared library ldflags
sed -i 's/$(AR) $(ARFLAGS) $(@) $(?)/$(AR) $(ARFLAGS) $(@) $(?) $(LDFLAGS)/g' libscotch/Makefile
@@ -41,7 +41,7 @@ prepare() {
}
build() {
- cd "${srcdir}/${pkgname}_${pkgver}/src"
+ cd "${srcdir}/${pkgname}-v${pkgver}/src"
make scotch
make -j1 esmumps
@@ -54,19 +54,20 @@ build() {
}
check() {
- cd "${srcdir}/${pkgname}_${pkgver}/src"
+ cd "${srcdir}/${pkgname}-v${pkgver}/src"
make check LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:../../lib"
make ptcheck LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:../../lib"
}
package() {
- cd "${srcdir}/${pkgname}_${pkgver}/src"
+ cd "${srcdir}/${pkgname}-v${pkgver}/src"
make install prefix="${pkgdir}/usr" includedir="${pkgdir}/usr/include/scotch"
# To avoid conflict with extra/gpart, maybe move the package to /opt/scotch ?
mv "${pkgdir}/usr/bin/gpart" "${pkgdir}/usr/bin/gpart-scotch"
- install -m 644 -D "${srcdir}/scotch_${pkgver}/doc/CeCILL-C_V1-en.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+ install -m 644 -D "../doc/CeCILL-C_V1-en.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
+