blob: f8385353a4c81e47c615586494e66743f1ffacce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: nameful.tee <nameful.tee@protonmail.ch>
# Contributor: bartus <arch-user-repoᘓbartus.33mail.com>
# Contributor: Hal Gentz <zegentzy@protonmail.com>
pkgname=blaze-git
pkgver=3.4.r84.d518c7ccf
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-libs: to use Boost threads to run numeric operations in parallel.')
makedepends=('git' 'cmake' 'blas' 'lapack' 'boost-libs')
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'
}
build() {
mkdir -p "${srcdir}/build"
cd "${srcdir}/build"
cmake "${srcdir}/${pkgname}" \
-DCMAKE_INSTALL_PREFIX="/usr"
}
package()
{
cd "${srcdir}/build"
make DESTDIR="${pkgdir}" install
# Install LICENSE file
cd "${srcdir}/${pkgname}"
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
|