aboutsummaryrefslogblamecommitdiffstats
path: root/community/openspecfun/APKBUILD
blob: 92825e6bc8a696e2473e746522042595b3930143 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                               
            
        

                                                         

                                               
                           
                                   
                           
                          
                                                                                                 

                      

         
                                       



                                                                      
                                                  


                                                                      



                                                                                                                                                          
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=openspecfun
pkgver=0.5.5
pkgrel=1
pkgdesc="A collection of special mathematical functions."
url="https://github.com/JuliaLang/openspecfun"
# s390x, mips64 and riscv64 blocked by openlibm
arch="all !s390x !mips64 !riscv64"
license="MIT Public-Domain"
makedepends="openlibm-dev gfortran"
options="!check" # no tests
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/JuliaLang/openspecfun/archive/v$pkgver.tar.gz
	openspecfun.pc
	"

build() {
	make USE_OPENLIBM=1 prefix=/usr
	sed "s/@VERSION@/$pkgver/" "$srcdir"/$pkgname.pc > $pkgname.pc
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr install
	install -D $pkgname.pc "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc
}

sha512sums="
429c0ce47c3a3a044266fee0e285bd4e53e7433c83bf02b03fc4526b8d0e415295143693642a34cdf1c6b59aa86e76fd76c51ffc9440d0ba655c16a8a24a2a1b  openspecfun-0.5.5.tar.gz
4546252dbe5d4b563439047df1d75fadb73e00b0c6389220ae6f242f1aa0344e54f87dc9a86edca66779bcb07716bcd6a173178bff54d3aeeb48804cfda64e4d  openspecfun.pc
"