summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbuzer Rafey2018-02-26 05:11:39 -0500
committerAbuzer Rafey2018-02-26 05:11:39 -0500
commitae60c18bb04c708b031986bdd7b970cac07ab779 (patch)
tree94bf0aa8d6d9196866868cc328f03c709ecf64ad
parent9ac5344d92e894dda8aaa2eda790d3129e2c355f (diff)
downloadaur-ae60c18bb04c708b031986bdd7b970cac07ab779.tar.gz
Change source and update to 1.6.1
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD18
2 files changed, 14 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 135c2566cee..5a7579ced50 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,10 +1,8 @@
-# Generated by mksrcinfo v8
-# Tue Nov 7 22:25:17 UTC 2017
pkgbase = mpb
pkgdesc = A program for computing the band structures and electromagnetic modes
pkgver = 1.5
pkgrel = 3
- url = http://ab-initio.mit.edu/wiki/index.php/MIT_Photonic_Bands
+ url = https://mpb.readthedocs.io
arch = i686
arch = x86_64
license = GPL
@@ -14,9 +12,8 @@ pkgbase = mpb
depends = fftw-mpi
depends = libctl
depends = openmpi
- source = http://ab-initio.mit.edu/mpb/mpb-1.5.tar.gz
- md5sums = ea4dfe6dfdabb054d6332316903cff9f
- sha256sums = 3deafe79185eb9eb8a8fe97d9fe51624221f51c1cf4baff4b4a7242c51130bd7
+ source = git+https://github.com/stevengj/mpb.git
+ sha256sums = SKIP
pkgname = mpb
diff --git a/PKGBUILD b/PKGBUILD
index acba2bf5dce..2242e03ad29 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,17 +8,21 @@ pkgver=1.5
pkgrel=3
pkgdesc="A program for computing the band structures and electromagnetic modes"
arch=('i686' 'x86_64')
-url="http://ab-initio.mit.edu/wiki/index.php/MIT_Photonic_Bands"
+url="https://mpb.readthedocs.io"
license=('GPL')
depends=('lapack' 'hdf5' 'fftw-mpi' 'libctl' 'openmpi')
makedepends=('gcc-fortran')
-source=(http://ab-initio.mit.edu/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('ea4dfe6dfdabb054d6332316903cff9f')
-sha256sums=('3deafe79185eb9eb8a8fe97d9fe51624221f51c1cf4baff4b4a7242c51130bd7')
+source=(git+https://github.com/stevengj/$pkgname.git)
+sha256sums=('SKIP')
-build() {
- cd "$srcdir"
+pkgver() {
+ 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
@@ -81,4 +85,4 @@ package() {
cd "$srcdir"/$pkgname-$pkgver-inv-mpi
make prefix="$pkgdir"/usr mandir="$pkgdir"/usr/share/man install
}
-#
+