# Maintainer: Natanael Copa pkgname=gsl pkgver=2.5 pkgrel=0 pkgdesc="Modern numerical library for C and C++ programmers" url="https://www.gnu.org/software/gsl/gsl.html" arch="all" license="GPL-3.0-or-later" depends= makedepends= subpackages="$pkgname-dev $pkgname-doc" source="http://ftp.gnu.org/gnu/gsl/gsl-$pkgver.tar.gz dont-disable-deprecated.patch" options="!check" # x86 and aarch64 fail the testsuite # dont-disable-deprecated.patch is workaround for: # https://github.com/SciRuby/rb-gsl/issues/40 builddir="$srcdir"/$pkgname-$pkgver build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="5b4c5c023f9029ce220f4e09aa4d0234fed94d42ac224d58fda095fe0532d54237a7c33278f8b5d0ba051f6004486edb38d0adb4fcb49337a8c1d8a18cf4a24a gsl-2.5.tar.gz 88d40e599a9e619d8968f9848a91c54492d99032734371ee23072c8dae9d9920da445c1f8a880baa613479facec4afca3d3dec1070c240e5dfd5a662a41c92e8 dont-disable-deprecated.patch"