diff options
author | Abuzer Rafey | 2018-02-26 05:11:39 -0500 |
---|---|---|
committer | Abuzer Rafey | 2018-02-26 05:11:39 -0500 |
commit | ae60c18bb04c708b031986bdd7b970cac07ab779 (patch) | |
tree | 94bf0aa8d6d9196866868cc328f03c709ecf64ad | |
parent | 9ac5344d92e894dda8aaa2eda790d3129e2c355f (diff) | |
download | aur-ae60c18bb04c708b031986bdd7b970cac07ab779.tar.gz |
Change source and update to 1.6.1
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 14 insertions, 13 deletions
@@ -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 @@ -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 } -# + |