diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-06-04 00:38:00 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-06-09 19:26:06 +0200 |
commit | f03a7db30b69de26efac73b867d383f8f2ccd174 (patch) | |
tree | 66b80fda35448636bdcc0305911bb6f37d08ee1e /testing/openspecfun | |
parent | 25cd7abbb74807e57b9436f4e45a4247ce4a2035 (diff) | |
download | aports-f03a7db30b69de26efac73b867d383f8f2ccd174.tar.bz2 aports-f03a7db30b69de26efac73b867d383f8f2ccd174.tar.xz |
testing/openspecfun: new abuild
https://github.com/JuliaLang/openspecfun
A collection of special mathematical functions.
Diffstat (limited to 'testing/openspecfun')
-rw-r--r-- | testing/openspecfun/APKBUILD | 38 | ||||
-rw-r--r-- | testing/openspecfun/openspecfun.pc | 12 |
2 files changed, 50 insertions, 0 deletions
diff --git a/testing/openspecfun/APKBUILD b/testing/openspecfun/APKBUILD new file mode 100644 index 0000000000..5a80d06e36 --- /dev/null +++ b/testing/openspecfun/APKBUILD @@ -0,0 +1,38 @@ +# Contributor: Jakub Jirutka <jakub@jirutka.cz> +# Maintainer: Jakub Jirutka <jakub@jirutka.cz> +pkgname=openspecfun +pkgver=0.5.2 +pkgrel=0 +pkgdesc="A collection of special mathematical functions." +url="https://github.com/JuliaLang/openspecfun" +arch="all" +license="MIT public-domain" +depends="" +depends_dev="openlibm-dev" +makedepends="$depends_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="21f53509ea59916510ec2d1485b529c2 openspecfun-0.5.2.tar.gz +55c582a9a90d6e1ad239794a2e598d43 openspecfun.pc" +sha256sums="e16fc52c1bb1c9dae079c3903e44bb708d4887ff7b543fcd28e24ce10c14abf8 openspecfun-0.5.2.tar.gz +71c6b4db8c72d66d971db5dd569b74122d5460a254c3d0331506fc03110f3860 openspecfun.pc" +sha512sums="bb36a13453c440228a02e2afc9ee2e0c21310bf90351fc757fa99807d63e3e3ff48e682ed03c026e3f5144f7715f9f7b08797cbf697cb16999a9b9e138c6f1fb openspecfun-0.5.2.tar.gz +4546252dbe5d4b563439047df1d75fadb73e00b0c6389220ae6f242f1aa0344e54f87dc9a86edca66779bcb07716bcd6a173178bff54d3aeeb48804cfda64e4d openspecfun.pc" diff --git a/testing/openspecfun/openspecfun.pc b/testing/openspecfun/openspecfun.pc new file mode 100644 index 0000000000..52c0afd81d --- /dev/null +++ b/testing/openspecfun/openspecfun.pc @@ -0,0 +1,12 @@ +prefix=/usr +exec_prefix=${prefix} +includedir=${prefix}/include +libdir=${exec_prefix}/lib + +Name: openspecfun +Version: @VERSION@ +URL: https://github.com/JuliaLang/openspecfun +Description: A collection of special mathematical functions +Requires.private: openlibm +Cflags: -I${includedir} +Libs: -L${libdir} -lopenspecfun |