summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngar <ingar@telenet.be>2024-04-04 23:20:38 +0200
committerIngar <ingar@telenet.be>2024-04-04 23:20:38 +0200
commit560758dc91352e0d34d573052e0a2d30059c3a55 (patch)
tree185b55305f6dc69db52199d7e9c71d77cc632a0f
Initial PKGBUILD commit.
-rw-r--r--PKGBUILD38
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
+}
+