summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2019-07-09 19:29:39 +0200
committerhaawda2019-07-09 19:29:39 +0200
commit95a2424909d680136742d605576ddd122350d42e (patch)
treeb28907ec85180db60d74d59059fc3c3cc1ff9256
parentf09cac4708bf1aff960655b6f9f4a6d37f6ca6a3 (diff)
downloadaur-95a2424909d680136742d605576ddd122350d42e.tar.gz
adopted and updated
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD138
2 files changed, 70 insertions, 78 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 655cbe43b58..cb5855ed25a 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = mpb
pkgdesc = A program for computing the band structures and electromagnetic modes
- pkgver = v1.6.1
+ pkgver = 1.9.0
pkgrel = 1
url = https://mpb.readthedocs.io
arch = i686
@@ -9,9 +9,11 @@ pkgbase = mpb
makedepends = gcc-fortran
depends = lapack
depends = hdf5
- depends = openmpi
- source = git+https://github.com/stevengj/mpb.git
- sha256sums = SKIP
+ depends = fftw
+ depends = libctl
+ depends = guile
+ source = https://github.com/NanoComp/mpb/releases/download/v1.9.0/mpb-1.9.0.tar.gz
+ sha256sums = c7b91d82bd8e63ea029d58cbf6d73904a99bc20436badf6aac30fc4a90850883
pkgname = mpb
diff --git a/PKGBUILD b/PKGBUILD
index 997ba0e7949..6601404d317 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,93 +1,83 @@
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributor: Tom K <tomk@runbox.com>
# Contributor: Aaron Ali <t0nedef@causal.ca>
-# AUR4 Maintainer: McNoggins <gagnon88 AT gmail DOT com>
+# Contributor: McNoggins <gagnon88 AT gmail DOT com>
+# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=mpb
-pkgver=v1.6.1
+pkgver=1.9.0
pkgrel=1
pkgdesc="A program for computing the band structures and electromagnetic modes"
arch=('i686' 'x86_64')
url="https://mpb.readthedocs.io"
license=('GPL')
-depends=('lapack' 'hdf5' 'openmpi' 'fftw-mpi' 'libctl')
+depends=('lapack' 'hdf5' 'fftw' 'libctl' 'guile')
makedepends=('gcc-fortran')
-source=(git+https://github.com/stevengj/$pkgname.git)
-sha256sums=('SKIP')
+source=(https://github.com/NanoComp/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz)
+sha256sums=('c7b91d82bd8e63ea029d58cbf6d73904a99bc20436badf6aac30fc4a90850883')
-pkgver() {
- cd "$srcdir/$pkgname"
- git describe --long --tags | cut -d- -f1
+prepare() {
+ cp -r $pkgname-$pkgver $pkgname-inv
+ cp -r $pkgname-$pkgver $pkgname-mpi
+ cp -r $pkgname-$pkgver $pkgname-inv-mpi
}
build() {
- cd "$srcdir/$pkgname"
- git checkout $pkgver
- cd ../
- cp -r $pkgname $pkgname-inv
- cp -r $pkgname $pkgname-mpi
- cp -r $pkgname $pkgname-inv-mpi
-
- # configure includes two options for working with GNU Fortran and HDF5 v1.8.x
- cd $pkgname
- sh autogen.sh
- ./configure \
- F77="gfortran" \
- CPPFLAGS="-DH5_USE_16_API=1" \
- --prefix=/usr \
- --enable-shared \
- --mandir=/usr/share/man
- make
-
- # configure inversion symmetry binaries (run at least 2x as fast)
- cd ../$pkgname-inv
- sh autogen.sh
- ./configure \
- F77="gfortran" \
- CPPFLAGS="-DH5_USE_16_API=1" \
- --prefix=/usr \
- --enable-shared \
- --with-inv-symmetry \
- --mandir=/usr/share/man
- make
-
- # configure parrallel computation
- cd ../$pkgname-mpi
- sh autogen.sh
- ./configure \
- F77="gfortran" \
- CPPFLAGS="-DH5_USE_16_API=1" \
- --prefix=/usr \
- --enable-shared \
- --with-mpi \
- --mandir=/usr/share/man
- make
-
- # configure parrallel computation
- cd ../$pkgname-inv-mpi
- sh autogen.sh
- ./configure \
- F77="gfortran" \
- CPPFLAGS="-DH5_USE_16_API=1" \
- --prefix=/usr \
- --enable-shared \
- --with-inv-symmetry \
- --with-mpi \
- --mandir=/usr/share/man
- make
+ # configure includes two options for working with GNU Fortran and HDF5 v1.8.x
+ cd "$pkgname-$pkgver"
+ ./configure \
+ F77="gfortran" \
+ CPPFLAGS="-DH5_USE_16_API=1" \
+ --prefix=/usr \
+ --enable-shared \
+ --mandir=/usr/share/man
+ make
+
+ # configure inversion symmetry binaries (run at least 2x as fast)
+ cd ../$pkgname-inv
+ ./configure \
+ F77="gfortran" \
+ CPPFLAGS="-DH5_USE_16_API=1" \
+ --prefix=/usr \
+ --enable-shared \
+ --with-inv-symmetry \
+ --mandir=/usr/share/man
+ make
+
+ # configure parallel computation
+ cd ../$pkgname-mpi
+ ./configure \
+ F77="gfortran" \
+ CPPFLAGS="-DH5_USE_16_API=1" \
+ --prefix=/usr \
+ --enable-shared \
+ --with-mpi \
+ --mandir=/usr/share/man
+ make
+
+ # configure parallel computation
+ cd ../$pkgname-inv-mpi
+ ./configure \
+ F77="gfortran" \
+ CPPFLAGS="-DH5_USE_16_API=1" \
+ --prefix=/usr \
+ --enable-shared \
+ --with-inv-symmetry \
+ --with-mpi \
+ --mandir=/usr/share/man
+ make
}
package() {
- cd "$srcdir"/$pkgname
- make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
-
- cd "$srcdir"/$pkgname-inv
- make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
-
- cd "$srcdir"/$pkgname-mpi
- make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
-
- cd "$srcdir"/$pkgname-inv-mpi
- make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
+ cd $pkgname-$pkgver
+ make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
+
+ cd "$srcdir"/$pkgname-inv
+ make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
+
+ cd "$srcdir"/$pkgname-mpi
+ make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
+
+ cd "$srcdir"/$pkgname-inv-mpi
+ make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
}
-