aboutsummaryrefslogtreecommitdiffstats
path: root/community/openlibm/APKBUILD
blob: 55c40b3d2a50fb20254601e3c344726952107725 (plain) (blame)
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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=openlibm
pkgver=0.7.1
pkgrel=0
pkgdesc="High quality system independent, portable, open source libm implementation"
url="https://openlibm.org/"
# mips fails due to softfloat
arch="all !s390x !mips !mips64"
license="MIT AND BSD-2-Clause AND ISC AND LGPL-2.1-or-later"
subpackages="$pkgname-dev"
source="openlibm-$pkgver.tar.gz::https://github.com/JuliaLang/openlibm/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="f0870132793754ed16d8baea8b6ab4f32733c635303fb1f7e7058f97af201822c730211364237c7d11f2836248548b2dda2fae9a1434cca18761b509a7b884d7  openlibm-0.7.1.tar.gz
76ee57a281275b2bd382f0485e4ca383566af47f3d89981b75ad764c629d82f7f0260fb41cc9eb50f0f175c88b64699aabcc732add321f4d730f38ba7a48238d  powerpc_fixes.patch"