pkgname=rpicam-apps-ing pkgver=1.4.3 pkgrel=1 pkgdesc="Camera utilities for the Raspberry Pi" arch=('aarch64') url='https://github.com/raspberrypi/rpicam-apps' source=( "https://github.com/raspberrypi/rpicam-apps/releases/download/v${pkgver}/rpicam-apps-${pkgver}.tar.xz" "rpicam.rules" "rpicam-apps-1.4.3-outputfilename.patch" ) sha256sums=( "c5415249eb8216a5c7063d31c713ba84cac88103f65ae0dcf097f1839156102e" "4045e41e24d8c3e247b667a66bc9eee13918f599f464003dde25ca55ed7bb995" "1e53aa6ea95ded5b6e6d28bac35f53b5725c06a99ab4664e37e88869dfe2e698" ) depends=( boost libdrm libexif ffmpeg libcamera-rpi qt5-base qt5-tools ) makedepends=(meson ninja) optdepends=() prepare() { cd rpicam-apps-${pkgver} patch -Np1 -i "${srcdir}/rpicam-apps-1.4.3-outputfilename.patch" 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-${pkgver} meson compile -C build } package() { install --mode=644 -D rpicam-apps.rules "${pkgdir}/etc/udev/rules.d/rpicam-apps.rules" cd rpicam-apps-${pkgver} DESTDIR="${pkgdir}" ninja -C build install }