blob: 6167598a4768224a0b403571841f09ac91021be0 (
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
|
# Maintainer: Lloyd Henning <lloyd.w.henning@gmail.com>
# Maintainer: Felix Pfeiffer <fepf@freeshell.de>
pkgname=aruco
pkgver=3.1.12
pkgrel=1
pkgdesc="ArUco is a C++ library for detection of squared planar markers based on OpenCV"
arch=('any')
url="https://www.uco.es/investiga/grupos/ava/node/26"
license=('GPLv3')
depends=('opencv')
makedepends=('cmake')
options=()
source=("https://downloads.sourceforge.net/project/aruco/$pkgver/$pkgname-$pkgver.zip")
md5sums=('ad59afcfe79eeb88dff76ddc95271435')
_builddir="$pkgname-$pkgver-build"
prepare() {
mkdir -p "$_builddir"
cd "$_builddir"
cmake "../$pkgname-$pkgver" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr
}
build() {
cd "$_builddir"
make -j $(nproc)
}
check() {
# print marker with id 0 of the default dictionary
"$_builddir"/utils/aruco_print_marker 0 out.png
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
}
|