blob: 2e2b77fe08a43360f3eb3a1cd5dc1be96a6b7d65 (
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
43
44
45
46
47
48
49
|
# Maintainer: Carlos Aznarán <caznaranl@uni.pe>
# Contributor: Gaël Donval <gdonval+aur at google mail>
pkgname=dynd
pkgver=0.7.2
pkgrel=4
pkgdesc="C++ dynamic ndarray library, with Python exposure"
arch=('x86_64')
url="http://lib${pkgname}.org"
license=('custom:BSD-2-clause')
depends=(fftw llvm)
makedepends=(cmake)
source=(https://github.com/lib${pkgname}/lib${pkgname}/archive/v${pkgver}.tar.gz)
sha512sums=('134195ba5839e05af07dd9ad0b8e749a83345511acd2a22a029a4d9a2c0fc77a8a1f36722bce20653d28189b7883afe7feb651c7d32ff921ef257a8a9aa4bd7f')
# -DBUILD_SHARED_LIBS=TRUE \
# -DCMAKE_INSTALL_LIBDIR=lib \
# -DFFTW_PATH=/usr/include \
build() {
# https://stackoverflow.com/a/28279475/9302545
# https://stackoverflow.com/a/11561340/9302545
cmake \
-S lib${pkgname}-${pkgver} \
-B build \
-DCMAKE_BUILD_TYPE=None \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_CXX_FLAGS="-Wno-error=tautological-compare -Wno-error=class-memaccess -Wno-error=deprecated-copy -Wno-error=implicit-fallthrough -Wno-error=parentheses -Wno-error=deprecated-declarations" \
-DCMAKE_CXX_STANDARD=14 \
-DCMAKE_CXX_COMPILER=g++ \
-DDYND_SHARED_LIB=ON \
-DDYND_LLVM=ON \
-DDYND_FFTW=ON \
-DDYND_BUILD_TESTS=OFF \
-DDYND_BUILD_BENCHMARKS=OFF \
-DDYND_BUILD_PLUGINS=OFF \
-DDYND_BUILD_DOCS=OFF \
-DDYND_COVERAGE=OFF \
-Wno-dev
cmake --build build --target all
}
# check() {
# cmake --build build --target test_libdynd
# }
package_dynd() {
DESTDIR="${pkgdir}" cmake --build build --target install
install -Dm 644 lib${pkgname}-${pkgver}/LICENSE.md -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm644 lib${pkgname}-${pkgver}/README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
}
|