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
|
2024-06-19 23:02:05 +00:00
|
|
|
pkgver=0.8.3
|
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/'
|
2024-06-19 23:02:05 +00:00
|
|
|
license=(MIT)
|
2019-12-06 13:47:31 +00:00
|
|
|
depends=(glibc)
|
2024-06-19 23:02:05 +00:00
|
|
|
makedepends=(git)
|
|
|
|
source=(git+https://github.com/JuliaLang/$pkgname#tag=v$pkgver
|
2019-12-06 13:47:31 +00:00
|
|
|
'0001-Remove-ARM-march-and-float-specification.patch')
|
2024-06-19 23:02:05 +00:00
|
|
|
sha256sums=('SKIP'
|
2024-02-18 19:33:06 +00:00
|
|
|
'1d8a5781bf7d87ae955b7c4c88f76c523eb30a9f0d057be223323cae578da31c')
|
2019-12-06 13:47:31 +00:00
|
|
|
|
|
|
|
prepare() {
|
2024-06-19 23:02:05 +00:00
|
|
|
cd $pkgname
|
2019-12-06 13:47:31 +00:00
|
|
|
patch -p1 -i ../0001-Remove-ARM-march-and-float-specification.patch
|
|
|
|
sed -e 's|/usr/local|/usr|' -i Make.inc
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2024-06-19 23:02:05 +00:00
|
|
|
cd $pkgname
|
2019-12-06 13:47:31 +00:00
|
|
|
make prefix=/usr
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2024-06-19 23:02:05 +00:00
|
|
|
cd $pkgname
|
2019-12-06 13:47:31 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
|
|
|
|
install -Dm644 LICENSE.md -t "$pkgdir"/usr/share/licenses/$pkgname/
|
|
|
|
}
|