diff options
-rw-r--r-- | PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
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 +} + |