aboutsummaryrefslogtreecommitdiffstats
path: root/community/openspecfun/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/openspecfun/APKBUILD')
-rw-r--r--community/openspecfun/APKBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/openspecfun/APKBUILD b/community/openspecfun/APKBUILD
new file mode 100644
index 0000000000..d8e89ddcbe
--- /dev/null
+++ b/community/openspecfun/APKBUILD
@@ -0,0 +1,37 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=openspecfun
+pkgver=0.5.3
+pkgrel=1
+pkgdesc="A collection of special mathematical functions."
+url="https://github.com/JuliaLang/openspecfun"
+arch="all"
+license="MIT public-domain"
+depends=""
+makedepends="openlibm-dev gfortran"
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/JuliaLang/$pkgname/archive/v$pkgver.tar.gz
+ openspecfun.pc
+ "
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ make USE_OPENLIBM=1 prefix=/usr || return 1
+ sed "s/@VERSION@/$pkgver/" "$srcdir"/$pkgname.pc > $pkgname.pc
+}
+
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" prefix=/usr install || return 1
+ install -D $pkgname.pc "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc
+}
+
+md5sums="1cb5297bac37519b47962fb288960125 openspecfun-0.5.3.tar.gz
+55c582a9a90d6e1ad239794a2e598d43 openspecfun.pc"
+sha256sums="1505c7a45f9f39ffe18be36f7a985cb427873948281dbcd376a11c2cd15e41e7 openspecfun-0.5.3.tar.gz
+71c6b4db8c72d66d971db5dd569b74122d5460a254c3d0331506fc03110f3860 openspecfun.pc"
+sha512sums="503da7592b126cce9ecb8af5ce16c667a9b022676721063e5f551fb88c0955f465ed66df7728ed2391f068ea14b77414bfd9934c0ee38081d11b998826d6b88a openspecfun-0.5.3.tar.gz
+4546252dbe5d4b563439047df1d75fadb73e00b0c6389220ae6f242f1aa0344e54f87dc9a86edca66779bcb07716bcd6a173178bff54d3aeeb48804cfda64e4d openspecfun.pc"