diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-08-04 02:33:02 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-08-04 14:20:16 +0000 |
commit | 01e5f72daf55e494af5b88b14732a822c09df7e0 (patch) | |
tree | 6870abe8bdf26ad3921301aa96ff19f1a30a6d57 | |
parent | 6887aebb2bb3ba72a931f28fbdc6f24b1ce318e8 (diff) | |
download | aports-01e5f72daf55e494af5b88b14732a822c09df7e0.tar.bz2 aports-01e5f72daf55e494af5b88b14732a822c09df7e0.tar.xz |
testing/harminv: upgrade to 1.4.1, update project url and modernize
-rw-r--r-- | testing/harminv/APKBUILD | 34 |
1 files changed, 11 insertions, 23 deletions
diff --git a/testing/harminv/APKBUILD b/testing/harminv/APKBUILD index 3922ed5add..dbd6ef63cb 100644 --- a/testing/harminv/APKBUILD +++ b/testing/harminv/APKBUILD @@ -1,32 +1,21 @@ # Contributor: Isaac Dunham <ibid.ag@gmail.com> # Maintainer: pkgname=harminv -pkgver=1.4 -pkgrel=1 +pkgver=1.4.1 +pkgrel=0 pkgdesc="Free program to solve the problem of harmonic inversion" -url="http://ab-initio.mit.edu/wiki/index.php/Harminv" +url="https://github.com/stevengj/harminv" arch="all" license="GPL" -depends="" depends_dev="openblas-dev" makedepends="$depends_dev gfortran" -install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" -source="http://ab-initio.mit.edu/harminv/harminv-$pkgver.tar.gz" +source="$pkgname-$pkgver.tar.gz::https://github.com/stevengj/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz" -_builddir="$srcdir"/harminv-$pkgver -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} +builddir="$srcdir"/$pkgname-$pkgver build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -35,14 +24,13 @@ build() { --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ - --disable-static --enable-shared \ - || return 1 - make || return 1 + --disable-static --enable-shared + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } -sha512sums="c3a5153bdd5ab4b160407bcd50f4843708c2f5924074fdfe88890e8770d6a874178a69e83cd615cdecce04d80a3a92133d435f7245c0a21962e1e18a14fb63f5 harminv-1.4.tar.gz" +sha512sums="30720804286e4d373bcaae5b1b8238748b3077bfd6e6afb98eba571d8acfd13d927b84d1f6ab2b975bd665063dfc533bd7a0d19f199bf51694c6d93f6c7c947c harminv-1.4.1.tar.gz" |