summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a8ebdf620634c7eeaa05d0cfb76c16bad19b29be (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
# Maintainer of this PKGBUILD file: Martino Pilia <martino.pilia@gmail.com>
pkgname=mynt-eye-s-sdk
pkgver=2.5.0
pkgrel=1
pkgdesc="Cross-platform library for Mynt Eye Standard cameras"
arch=('x86_64')
url="https://github.com/slightech/MYNT-EYE-S-SDK"
license=('Apache')
depends=(
	'cuda'
	'opencv3-opt'
	'v4l-utils'
)
makedepends=(
	'cmake'
	'git'
)
source=("${pkgname}-${pkgver}::git+https://github.com/slightech/MYNT-EYE-S-SDK.git#tag=v${pkgver}")
sha256sums=('SKIP')

prepare() {
	cd "$pkgname-$pkgver"
	[ ! -d build ] || rm -rf build
	mkdir build && cd build
	cmake .. \
		-DCMAKE_INSTALL_PREFIX:PATH="/usr" \
		-DCMAKE_BUILD_TYPE:STRING=Release \
		-DBUILD_SHARED_LIBS=ON \
		-DOpenCV_DIR=/opt/opencv3/share/OpenCV
}

build() {
	cd "$pkgname-$pkgver/build"
	make
}

package() {
	cd "$pkgname-$pkgver/build"

	make DESTDIR="$pkgdir/" install

	install -D -m644 \
		"${srcdir}/$pkgname-$pkgver/LICENSE" \
		"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}