# Contributor: Jakub Jirutka # Maintainer: Jakub Jirutka pkgname=openspecfun pkgver=0.5.2 pkgrel=1 pkgdesc="A collection of special mathematical functions." url="https://github.com/JuliaLang/openspecfun" # openlibm is currently not building for armhf arch="x86 x86_64" license="MIT public-domain" depends="" makedepends="openlibm-dev gfortran" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/JuliaLang/$pkgname/archive/v$pkgver.tar.gz openspecfun.pc " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" make USE_OPENLIBM=1 prefix=/usr || return 1 sed "s/@VERSION@/$pkgver/" "$srcdir"/$pkgname.pc > $pkgname.pc } package() { cd "$builddir" make DESTDIR="$pkgdir" prefix=/usr install || return 1 install -D $pkgname.pc "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc } md5sums="21f53509ea59916510ec2d1485b529c2 openspecfun-0.5.2.tar.gz 55c582a9a90d6e1ad239794a2e598d43 openspecfun.pc" sha256sums="e16fc52c1bb1c9dae079c3903e44bb708d4887ff7b543fcd28e24ce10c14abf8 openspecfun-0.5.2.tar.gz 71c6b4db8c72d66d971db5dd569b74122d5460a254c3d0331506fc03110f3860 openspecfun.pc" sha512sums="bb36a13453c440228a02e2afc9ee2e0c21310bf90351fc757fa99807d63e3e3ff48e682ed03c026e3f5144f7715f9f7b08797cbf697cb16999a9b9e138c6f1fb openspecfun-0.5.2.tar.gz 4546252dbe5d4b563439047df1d75fadb73e00b0c6389220ae6f242f1aa0344e54f87dc9a86edca66779bcb07716bcd6a173178bff54d3aeeb48804cfda64e4d openspecfun.pc"