aboutsummaryrefslogtreecommitdiffstats
path: root/community/cpd/APKBUILD
blob: e36a037d6dfb14957212ca7245daa17500de77db (plain) (blame)
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
# Contributor: Bradley J Chambers <brad.chambers@gmail.com>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=cpd
pkgver=0.5.3
pkgrel=1
pkgdesc="C++ implementation of the Coherent Point Drift point set registration algorithm."
url="https://github.com/gadomski/cpd"
arch="all"
license="GPL-2.0-or-later"
makedepends="cmake eigen-dev fgt-dev samurai"
subpackages="$pkgname-dev"
source="https://github.com/gadomski/cpd/archive/v$pkgver/cpd-v$pkgver.tar.gz
	0001-Stop-forcing-static-builds.patch
	"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=None \
		-DWITH_TESTS=ON \
		-DBUILD_SHARED_LIBS=ON
	cmake --build build
}

check() {
	cd build
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
d2331681978f6906f13dc66a8eda2834f93e9af72ad59c6635b9ec6b5bc8cf458e4945e952e3f6bf82bc9bc29af4636f3325f997d4a6ffc21f9f27e1cde3c3b1  cpd-v0.5.3.tar.gz
c9fc897486d2db611946fa060d31ac7a010dd92ffd456ccc4161bad4f5225fdc1fea2410718448a88b98d65187069e22740d00501ed15b0e1798327d3b8b7e22  0001-Stop-forcing-static-builds.patch
"