archrelease: copy trunk to community-any
[ArchLinux/community.git] / cctag / trunk / PKGBUILD
blob6fb218e6f87ac27bd80eb261125f3ca4253c4be0
1 # Maintainer: Sven-Hendrik Haase <svenstaro@archlinux.org>
2 # Contributor: bartus <arch-user-repoᘓbartus.33mail.com>
3 pkgname=cctag
4 pkgver=1.0.3
5 pkgrel=10
6 pkgdesc="Detection of CCTag markers made up of concentric circles"
7 arch=('x86_64')
8 url="https://github.com/alicevision/CCTag"
9 license=('MPL2')
10 depends=('boost-libs' 'tbb' 'cuda' 'qt6-base' 'opencv')
11 makedepends=('boost' 'cmake' 'eigen' 'ninja')
12 options=('!lto')
13 source=("$pkgname-$pkgver.tar.gz::https://github.com/alicevision/CCTag/archive/refs/tags/v${pkgver}.tar.gz")
14 sha256sums=('25396b03c4aa3c1be241a2a8518a29511cb4fff695caa5126203fbba8e8e444d')
17 build() {
18   cd CCTag-$pkgver
20   cmake \
21     -Bbuild \
22     -GNinja \
23     -DCUDA_HOST_COMPILER=/opt/cuda/bin/gcc \
24     -DCMAKE_INSTALL_PREFIX=/usr \
25     -DCMAKE_BUILD_TYPE=Release \
26     -DBUILD_SHARED_LIBS=ON \
27     -DCCTAG_ENABLE_SIMD_AVX2=ON \
28     -DCCTAG_CUDA_CC_LIST_INIT="5.2 5.3 6.0 6.1 6.2 7.0 7.2 7.5 8.0 8.6 8.7 8.9 9.0"
29   ninja -C build
32 package() {
33   cd CCTag-$pkgver
35   DESTDIR="${pkgdir}" ninja -C build install
37 # vim:set ts=2 sw=2 et: