2019-12-06 13:47:31 +00:00
|
|
|
# Maintainer: Antonio Rojas <arojas@archlinux.org>
|
|
|
|
# Contributor: Lex Black <autumn-wind@web.de>
|
|
|
|
# Contributor: Arthur Zamarin <arthurzam@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - patch out hard ARM march and float specification
|
|
|
|
|
|
|
|
pkgname=openlibm
|
2021-02-17 19:21:29 +00:00
|
|
|
pkgver=0.7.5
|
2019-12-10 14:01:29 +00:00
|
|
|
pkgrel=1
|
2019-12-06 13:47:31 +00:00
|
|
|
pkgdesc='Standalone implementation of C mathematical functions'
|
|
|
|
arch=(x86_64)
|
|
|
|
url='https://openlibm.org/'
|
|
|
|
license=(BSD)
|
|
|
|
depends=(glibc)
|
|
|
|
source=("$pkgname-$pkgver.tar.gz::https://github.com/JuliaLang/$pkgname/archive/v$pkgver.tar.gz"
|
|
|
|
'0001-Remove-ARM-march-and-float-specification.patch')
|
2021-02-17 19:21:29 +00:00
|
|
|
sha256sums=('be983b9e1e40e696e8bbb7eb8f6376d3ca0ae675ae6d82936540385b0eeec15b'
|
2019-12-06 13:47:31 +00:00
|
|
|
'2b16d1e852a88bc6d31e9b25ed60b1a374f46b2034ce3449c2b8dafc6d2007c9')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
patch -p1 -i ../0001-Remove-ARM-march-and-float-specification.patch
|
|
|
|
sed -e 's|/usr/local|/usr|' -i Make.inc
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make prefix=/usr
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
|
|
}
|