27 lines
788 B
Plaintext
27 lines
788 B
Plaintext
# Description: An open source camera stack and framework for Linux, Android, and ChromeOS
|
|
# URL: https://libcamera.org/
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: glib graphviz libdrm libtiff python3-jinja2 python3-ply python3-yaml
|
|
# Optional: gnutls gst-plugins-base libsdl2 qt5
|
|
|
|
name=libcamera
|
|
version=0.2.0
|
|
release=1
|
|
source=(https://github.com/libcamera-org/libcamera/archive/refs/tags/v$version.tar.gz)
|
|
renames=($name-$version.tar.gz)
|
|
|
|
build() {
|
|
printf "%s\n" "$version" > $name-$version/.tarball-version
|
|
meson setup $name-$version build \
|
|
--prefix=/usr \
|
|
--buildtype=plain \
|
|
--wrap-mode nodownload \
|
|
-D b_lto=true \
|
|
-D b_pie=true \
|
|
-D v4l2=true \
|
|
-D werror=false
|
|
|
|
meson compile -C build
|
|
DESTDIR=$PKG meson install -C build
|
|
}
|