summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbuzer Rafey2018-02-26 05:29:59 -0500
committerAbuzer Rafey2018-02-26 05:29:59 -0500
commitf09cac4708bf1aff960655b6f9f4a6d37f6ca6a3 (patch)
tree7dd9861795d321723ca1bea1e05ad0c515b1485c
parentae60c18bb04c708b031986bdd7b970cac07ab779 (diff)
downloadaur-f09cac4708bf1aff960655b6f9f4a6d37f6ca6a3.tar.gz
Add 1.6.1 (actually this time) and fix build issues
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD39
2 files changed, 24 insertions, 21 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5a7579ced50..655cbe43b58 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mpb
pkgdesc = A program for computing the band structures and electromagnetic modes
- pkgver = 1.5
- pkgrel = 3
+ pkgver = v1.6.1
+ pkgrel = 1
url = https://mpb.readthedocs.io
arch = i686
arch = x86_64
@@ -9,8 +9,6 @@ pkgbase = mpb
makedepends = gcc-fortran
depends = lapack
depends = hdf5
- depends = fftw-mpi
- depends = libctl
depends = openmpi
source = git+https://github.com/stevengj/mpb.git
sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 2242e03ad29..997ba0e7949 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,31 +4,33 @@
# AUR4 Maintainer: McNoggins <gagnon88 AT gmail DOT com>
pkgname=mpb
-pkgver=1.5
-pkgrel=3
+pkgver=v1.6.1
+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' 'fftw-mpi' 'libctl' 'openmpi')
+depends=('lapack' 'hdf5' 'openmpi' 'fftw-mpi' 'libctl')
makedepends=('gcc-fortran')
source=(git+https://github.com/stevengj/$pkgname.git)
sha256sums=('SKIP')
pkgver() {
- cd "${srcdir}/${pkgname}"
+ cd "$srcdir/$pkgname"
git describe --long --tags | cut -d- -f1
}
build() {
- cd "${srcdir}/${pkgname}"
- git checkout ${pkgver}
- cp -r $pkgname-$pkgver $pkgname-$pkgver-inv
- cp -r $pkgname-$pkgver $pkgname-$pkgver-mpi
- cp -r $pkgname-$pkgver $pkgname-$pkgver-inv-mpi
+ 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-$pkgver
+ cd $pkgname
+ sh autogen.sh
./configure \
F77="gfortran" \
CPPFLAGS="-DH5_USE_16_API=1" \
@@ -38,7 +40,8 @@ build() {
make
# configure inversion symmetry binaries (run at least 2x as fast)
- cd ../$pkgname-$pkgver-inv
+ cd ../$pkgname-inv
+ sh autogen.sh
./configure \
F77="gfortran" \
CPPFLAGS="-DH5_USE_16_API=1" \
@@ -49,7 +52,8 @@ build() {
make
# configure parrallel computation
- cd ../$pkgname-$pkgver-mpi
+ cd ../$pkgname-mpi
+ sh autogen.sh
./configure \
F77="gfortran" \
CPPFLAGS="-DH5_USE_16_API=1" \
@@ -60,7 +64,8 @@ build() {
make
# configure parrallel computation
- cd ../$pkgname-$pkgver-inv-mpi
+ cd ../$pkgname-inv-mpi
+ sh autogen.sh
./configure \
F77="gfortran" \
CPPFLAGS="-DH5_USE_16_API=1" \
@@ -73,16 +78,16 @@ build() {
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
+ cd "$srcdir"/$pkgname
make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
- cd "$srcdir"/$pkgname-$pkgver-inv
+ cd "$srcdir"/$pkgname-inv
make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
- cd "$srcdir"/$pkgname-$pkgver-mpi
+ cd "$srcdir"/$pkgname-mpi
make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
- cd "$srcdir"/$pkgname-$pkgver-inv-mpi
+ cd "$srcdir"/$pkgname-inv-mpi
make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
}