From 560758dc91352e0d34d573052e0a2d30059c3a55 Mon Sep 17 00:00:00 2001 From: Ingar Date: Thu, 4 Apr 2024 23:20:38 +0200 Subject: Initial PKGBUILD commit. --- PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 PKGBUILD (limited to 'PKGBUILD') diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..35f8b41 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} + -- cgit v1.2.3