summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 35f8b41d3027d533a18c9a6ca2afcd1934023bd6 (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
pkgname=rpicam-apps
pkgver=0.2.0
pkgrel=1
pkgdesc="Camera utilities for the Raspberry Pi"
arch=('aarch64')
url='https://github.com/raspberrypi/libcamera'
depends=(boost libdrm libexif)
makedepends=(git meson ninja cmake)
optdepends=()

prepare()
{
	git clone https://github.com/raspberrypi/rpicam-apps.git
	cd rpicam-apps
	mkdir build
	arch-meson build \
		--buildtype=release \
		--wrap-mode default \
		-Denable_libav=true \
		-Denable_drm=true \
		-Denable_egl=true \
		-Denable_qt=true \
		-Denable_opencv=false \
		-Denable_tflite=false
}

build()
{
	cd rpicam-apps
	meson compile -C build
}

package()
{
	cd rpicam-apps
	DESTDIR="$pkgdir" ninja -C build install
}