subrepo:
  subdir:   "libcamera-clang-git"
  merged:   "59e4846"
upstream:
  origin:   "https://aur.archlinux.org/libcamera-clang-git.git"
  branch:   "master"
  commit:   "59e4846"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
This commit is contained in:
Gabriel Ebner 2021-08-05 22:00:27 +02:00
parent 675f6cd6a9
commit bf61a6d4dd
4 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,41 @@
pkgbase = libcamera-clang-git
pkgdesc = A complex camera support library for Linux, Android, and ChromeOS (built with clang)
pkgver = r2742.143b2524
pkgrel = 1
url = https://libcamera.org/
arch = x86_64
arch = i686
license = LGPL
license = GPL
license = Apache
license = BSD
license = MIT
license = custom
makedepends = python-yaml
makedepends = python-ply
makedepends = python-jinja
makedepends = pkgconf
makedepends = gnutls
makedepends = openssl
makedepends = git
makedepends = gtest
makedepends = udev
makedepends = gstreamer
makedepends = qt5-tools
makedepends = libevent
makedepends = meson>=0.55
makedepends = clang>=5.0
depends = gst-plugins-base-libs
optdepends = qt5-base: for qcam test application
optdepends = libevent: for test commands
optdepends = gtest: for lc-compliance test command
provides = libcamera
provides = libcamera-clang
provides = libcamera-git
provides = qcam
conflicts = libcamera
options = !docs
source = git://linuxtv.org/libcamera.git/
md5sums = SKIP
pkgname = libcamera-clang-git

6
libcamera-clang-git/.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
libcamera/
src/
pkg/
.vscode/
*.tar*
*.log

View File

@ -0,0 +1,12 @@
; DO NOT EDIT (unless you know what you are doing)
;
; This subdirectory is a git "subrepo", and this file is maintained by the
; git-subrepo command. See https://github.com/git-commands/git-subrepo#readme
;
[subrepo]
remote = https://aur.archlinux.org/libcamera-clang-git.git
branch = master
commit = 59e484605fdf8553bcc9d0cc7bf5814d8ec2fc3f
parent = 675f6cd6a9a867a64d2ad00d5848966f841b2825
method = merge
cmdver = 0.4.3

View File

@ -0,0 +1,70 @@
# Maintainer: Sam L. Yes <samlukeyes123@gmail.com>
pkgname=libcamera-clang-git
pkgver=r2742.143b2524
pkgrel=1
pkgdesc='A complex camera support library for Linux, Android, and ChromeOS (built with clang)'
arch=('x86_64' 'i686')
url='https://libcamera.org/'
provides=('libcamera' 'libcamera-clang' 'libcamera-git' 'qcam')
conflicts=('libcamera')
makedepends=(
'python-yaml' 'python-ply' 'python-jinja' 'pkgconf' 'gnutls' 'openssl' 'git' 'gtest'
'udev' # for device hotplug enumeration
'gstreamer' # for gstreamer support
'qt5-tools' # for 'qcam'
'libevent' # for 'cam'
'meson>=0.55'
'clang>=5.0'
)
depends=(
#'libc++'
'gst-plugins-base-libs' # for gstreamer support
#'lttng-ust' # for tracing with LTTng
)
optdepends=(
'qt5-base: for qcam test application'
'libevent: for test commands'
'gtest: for lc-compliance test command'
)
license=('LGPL' 'GPL' 'Apache' 'BSD' 'MIT' 'custom')
options=('!docs')
source=('git://linuxtv.org/libcamera.git/')
md5sums=('SKIP')
_licensedir=/usr/share/licenses/${pkgname}
prepare() {
sed -i 's|py_compile=True,||' ${srcdir}/libcamera/utils/ipc/mojo/public/tools/mojom/mojom/generate/template_expander.py
}
pkgver() {
cd libcamera
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${srcdir}/libcamera"
CC=clang CXX=clang++ arch-meson build \
-Dwerror=false \
-Dv4l2=true \
-Dipas=ipu3,vimc \
-Dpipelines=ipu3,uvcvideo,vimc \
-Ddocumentation=disabled \
-Dtracing=disabled # comment this line to enable LTTng support
ninja -C build
}
check() {
cd ${srcdir}/libcamera
meson test -C build
}
package() {
cd "$srcdir/libcamera"
DESTDIR="${pkgdir}" ninja -C build install
# Install licenses
install -d ${pkgdir}/${_licensedir}/LICENSES
install -m644 COPYING.rst ${pkgdir}/${_licensedir}
install -m644 LICENSES/{BSD-{2,3}-Clause,CC-BY-SA-4.0,CC0-1.0,MIT,Linux-syscall-note}.txt ${pkgdir}/${_licensedir}/LICENSES
}