aboutsummaryrefslogtreecommitdiffstats
path: root/community/openlibm/APKBUILD
blob: a6d881801f85a80588ce9caa16854148aa4d9937 (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=openlibm
pkgver=0.6.0
pkgrel=0
pkgdesc="High quality system independent, portable, open source libm implementation"
url="http://www.openlibm.org"
arch="all !s390x"
license="MIT BSD Public-Domain"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/JuliaLang/$pkgname/archive/v$pkgver.tar.gz
	powerpc_fixes.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make VERSION=$pkgver DESTDIR="$pkgdir" prefix=/usr install
}

sha512sums="ea7770c5e82ddfe84d7490a5175439cf676f2c517f029a748cfeec174234f33ee04c42ce284753771588a36b4b9b5d8c2f72f2235408d8f9393bdf19abfec7b1  openlibm-0.6.0.tar.gz
76ee57a281275b2bd382f0485e4ca383566af47f3d89981b75ad764c629d82f7f0260fb41cc9eb50f0f175c88b64699aabcc732add321f4d730f38ba7a48238d  powerpc_fixes.patch"