diff options
Diffstat (limited to 'community/arpack/APKBUILD')
-rw-r--r-- | community/arpack/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/community/arpack/APKBUILD b/community/arpack/APKBUILD new file mode 100644 index 0000000000..0960a9a17c --- /dev/null +++ b/community/arpack/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=arpack +_pkgname=$pkgname-ng +pkgver=3.4.0 +pkgrel=0 +pkgdesc="Collection of Fortran77 subroutines designed to solve large scale eigenvalue problems" +url="https://github.com/opencollab/arpack-ng" +arch="all" +license="BSD" +depends="" +depends_dev="openblas-dev" +makedepends="$depends_dev autoconf automake gfortran libtool" +subpackages="$pkgname-dev $pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/opencollab/$_pkgname/archive/$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +prepare() { + default_prepare || return 1 + + cd "$builddir" + ./bootstrap +} + +build() { + cd "$builddir" + + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --localstatedir=/var \ + || return 1 + make +} + +package() { + cd "$builddir" + + make DESTDIR="$pkgdir" install || return 1 + + install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" || return 1 + + install -d "$pkgdir"/usr/share/doc/$pkgname || return 1 + mv DOCUMENTS/* "$pkgdir"/usr/share/doc/$pkgname/ +} + +md5sums="ae9ca13f2143a7ea280cb0e2fd4bfae4 arpack-3.4.0.tar.gz" +sha256sums="69e9fa08bacb2475e636da05a6c222b17c67f1ebeab3793762062248dd9d842f arpack-3.4.0.tar.gz" +sha512sums="4577a960ed0783ed2c0eb5e1871c21b9e23e75fbbfa10da1584cd3716f2699c0d633bb0e2019c0aa8809917684ef18d32508b76cb1edfc62b1179d5bbc2b68ba arpack-3.4.0.tar.gz" |