summaryrefslogtreecommitdiff
path: root/community/openspecfun/APKBUILD
blob: 67d21ef2868d27e270f19a2b4ed5136e6f18b45f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=openspecfun
pkgver=0.5.3
pkgrel=1
pkgdesc="A collection of special mathematical functions."
url="https://github.com/JuliaLang/openspecfun"
arch="all !s390x"
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="1cb5297bac37519b47962fb288960125  openspecfun-0.5.3.tar.gz
55c582a9a90d6e1ad239794a2e598d43  openspecfun.pc"
sha256sums="1505c7a45f9f39ffe18be36f7a985cb427873948281dbcd376a11c2cd15e41e7  openspecfun-0.5.3.tar.gz
71c6b4db8c72d66d971db5dd569b74122d5460a254c3d0331506fc03110f3860  openspecfun.pc"
sha512sums="503da7592b126cce9ecb8af5ce16c667a9b022676721063e5f551fb88c0955f465ed66df7728ed2391f068ea14b77414bfd9934c0ee38081d11b998826d6b88a  openspecfun-0.5.3.tar.gz
4546252dbe5d4b563439047df1d75fadb73e00b0c6389220ae6f242f1aa0344e54f87dc9a86edca66779bcb07716bcd6a173178bff54d3aeeb48804cfda64e4d  openspecfun.pc"