blob: c23f9e3cdffe5558631922b8fbcbdc64ec838112 (
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
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
pkgname=cnmatrix-git
pkgver=0.0.r36.g5936c62
pkgrel=2
pkgdesc='C interface to a few matrix backends (git version)'
arch=('x86_64')
url='https://github.com/cntools/cnmatrix/'
license=('MIT')
makedepends=('git' 'cmake' 'eigen')
provides=('cnmatrix')
conflicts=('cnmatrix')
source=('git+https://github.com/cntools/cnmatrix.git')
sha256sums=('SKIP')
pkgver() {
git -C cnmatrix describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
build() {
cmake -B build -S cnmatrix \
-G 'Unix Makefiles' \
-DCMAKE_BUILD_TYPE:STRING='None' \
-DCMAKE_INSTALL_PREFIX:PATH='/usr' \
-DENABLE_TESTS:BOOL='ON' \
-Wno-dev
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -D -m644 cnmatrix/LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
|