diff options
author | Hal Gentz | 2017-07-26 23:40:06 -0600 |
---|---|---|
committer | Hal Gentz | 2017-07-26 23:40:06 -0600 |
commit | 90ee684c9b25dd707ec564c7d7b6f8d51d8c2b2f (patch) | |
tree | 9bb6abcd1529bec655ee900dd2238afa7d10d6ed /PKGBUILD | |
download | aur-90ee684c9b25dd707ec564c7d7b6f8d51d8c2b2f.tar.gz |
Initial Commit
Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0d0bdb6b20c0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Hal Gentz <zegentzy@protonmail.com> + +pkgname=blaze-git +pkgver=3.1.r679.e48767c20 +pkgrel=1 +pkgdesc="An open-source, high-performance C++ math library for dense and sparse arithmetic." +arch=('i686' 'x86_64') +url="https://bitbucket.org/blaze-lib/blaze" +license=('New BSD') +optdepends=('blas: for maximum performance.' + 'lapack: for computing the determinant of a dense matrix and for the dense matrix inversion.' + 'boost: to use Boost threads to run numeric operations in parallel.') +makedepends=('git') +provides=('blaze') +conflicts=('blaze') +source=("$pkgname::git+https://bitbucket.org/blaze-lib/blaze.git") +md5sums=('SKIP') + +pkgver() +{ + cd "$srcdir/${pkgname}" + git describe --long --tags | sed 's/^v//;s/\([^-]*-\)g/r\1/;s/-/./g' +} + +package() +{ + cd "$srcdir/$pkgname" + + # New BSD license + install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + + # include files + install -d -m644 "${pkgdir}/usr/include" + + cp -r ./blaze "${pkgdir}/usr/include" + + find "${pkgdir}/usr/include" -type d -exec chmod 755 {} \; + find "${pkgdir}/usr/include" -type f -exec chmod 644 {} \; +} |