aboutsummaryrefslogtreecommitdiffstats
path: root/community/openlibm/APKBUILD
blob: 5d433cce5ae6378251ca5a4599e9f6518891db5d (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=openlibm
pkgver=0.6.0
pkgrel=1
pkgdesc="High quality system independent, portable, open source libm implementation"
url="https://openlibm.org/"
arch="all !s390x"
license="MIT AND BSD-2-Clause AND ISC AND LGPL-2.1-or-later"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/JuliaLang/$pkgname/archive/v$pkgver.tar.gz
	powerpc_fixes.patch"

build() {
	make
}

check() {
	make check
}

package() {
	make VERSION=$pkgver DESTDIR="$pkgdir" prefix=/usr install
	rm -f "$pkgdir"/usr/lib/*.a
}

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