diff options
-rw-r--r-- | .SRCINFO | 114 | ||||
-rw-r--r-- | PKGBUILD | 63 |
2 files changed, 160 insertions, 17 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 0000000..9fbe32d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,114 @@ +pkgbase = libcamera + pkgdesc = A complex camera support library for Linux, Android, and ChromeOS + pkgver = 0.2.0 + pkgrel = 1 + url = https://libcamera.org/ + arch = x86_64 + makedepends = doxygen + makedepends = git + makedepends = glib2 + makedepends = graphviz + makedepends = gst-plugins-base + makedepends = gtest + makedepends = libdrm + makedepends = libjpeg-turbo + makedepends = libtiff + makedepends = libyaml + makedepends = meson + makedepends = python-jinja + makedepends = python-ply + makedepends = python-sphinx + makedepends = python-pyyaml + makedepends = qt5-base + makedepends = qt5-tools + makedepends = sdl2 + makedepends = systemd + makedepends = texlive-core + source = git+https://git.libcamera.org/libcamera/libcamera.git#tag=a3690f601bf9a90e1a936d9f361aebd789e3b073 + sha512sums = SKIP + b2sums = SKIP + +pkgname = libcamera + license = Apache-2.0 + license = CC0-1.0 + license = GPL-2.0-only WITH Linux-syscall-note + license = GPL-2.0-or-later + license = LGPL-2.1-or-later + license = GPL-2.0-or-later WITH Linux-syscall-note OR BSD-3-Clause + license = GPL-2.0-or-later WITH Linux-syscall-note OR MIT + depends = gcc-libs + depends = glibc + depends = gnutls + depends = libcamera-ipa + depends = libelf + depends = libunwind + depends = libyaml + depends = sh + depends = systemd-libs + depends = libudev.so + optdepends = gst-plugin-libcamera: GStreamer plugin + optdepends = libcamera-docs: for documentation + optdepends = libcamera-tools: for applications + provides = libcamera.so + provides = libcamera-base.so + +pkgname = libcamera-docs + pkgdesc = A complex camera support library for Linux, Android, and ChromeOS - documentation + license = CC-BY-4.0 + license = CC-BY-SA-4.0 + license = CC0-1.0 + +pkgname = libcamera-ipa + pkgdesc = A complex camera support library for Linux, Android, and ChromeOS - signed IPA + license = BSD-2-Clause + license = CC-BY-SA-4.0 + license = CC0-1.0 + license = GPL-2.0-or-later + license = LGPL-2.1-or-later + depends = gcc-libs + depends = glibc + depends = libcamera + depends = libcamera.so + depends = libcamera-base.so + options = !strip + +pkgname = libcamera-tools + pkgdesc = A complex camera support library for Linux, Android, and ChromeOS - tools + license = BSD-2-Clause + license = CC0-1.0 + license = GPL-2.0-or-later + license = LGPL-2.1-or-later + depends = gcc-libs + depends = glibc + depends = gtest + depends = libcamera + depends = libcamera.so + depends = libcamera-base.so + depends = libdrm + depends = libevent + depends = libevent-2.1.so + depends = libevent_pthreads-2.1.so + depends = libjpeg-turbo + depends = libjpeg.so + depends = libtiff + depends = libtiff.so + depends = libyaml + depends = qt5-base + depends = sdl2 + conflicts = libcamera-tests<0.0.1-2 + replaces = libcamera-tests<0.0.1-2 + +pkgname = gst-plugin-libcamera + pkgdesc = Multimedia graph framework - libcamera plugin + license = CC0-1.0 + license = LGPL-2.1-or-later + depends = gcc-libs + depends = glibc + depends = glib2 + depends = libglib-2.0.so + depends = libgobject-2.0.so + depends = gstreamer + depends = gst-plugins-base-libs + depends = libcamera + depends = libcamera.so + depends = libcamera-base.so @@ -8,16 +8,13 @@ pkgname=( libcamera-tools gst-plugin-libcamera ) -pkgver=0.1.0 -_commit=9e3a83c03bab65b745eea2482be78077b409a2b5 # refs/tags/v0.1.0 -pkgrel=2 +pkgver=0.2.0 +_commit=a3690f601bf9a90e1a936d9f361aebd789e3b073 # refs/tags/v0.2.0 +pkgrel=1 pkgdesc="A complex camera support library for Linux, Android, and ChromeOS" arch=(x86_64) url="https://libcamera.org/" -license=( - LGPL2.1 - GPL2 -) +_url=https://git.libcamera.org/libcamera/libcamera.git makedepends=( doxygen git @@ -41,13 +38,10 @@ makedepends=( texlive-core ) source=( - git+https://git.libcamera.org/$pkgbase/$pkgbase.git#tag=$_commit - $pkgbase-0.0.5-sphinx.patch + "git+$_url#tag=$_commit" ) -sha512sums=('SKIP' - '52abec885c0a38c042622bc1bb106f7cefc19e3d8d0b6dcba7c4fadae3ad9303d5ae74447a72abe710598bc2162d57900be54bfe0de18d4c0842160c1c65b35a') -b2sums=('SKIP' - 'e43847222ad644a23761f7f601891971f499552156d8dfd5922732d134e5a09202c6c4fa3880e13c1ae950d34c5a3617ada12fabc06368e3201110ac5455af7f') +sha512sums=('SKIP') +b2sums=('SKIP') _pick() { local p="$1" f d; shift @@ -59,15 +53,16 @@ _pick() { done } +pkgver() { + cd $pkgbase + git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//g' +} + prepare() { cd $pkgbase # add version, so that utils/gen-version.sh may rely on it printf "%s\n" "$pkgver" > .tarball-version - - # fix use of python-sphinx - # https://github.com/sphinx-doc/sphinx/pull/11381 - git apply -v ../$pkgbase-0.0.5-sphinx.patch } build() { @@ -86,6 +81,15 @@ check() { } package_libcamera() { + license=( + Apache-2.0 + CC0-1.0 + 'GPL-2.0-only WITH Linux-syscall-note' + GPL-2.0-or-later + LGPL-2.1-or-later + 'GPL-2.0-or-later WITH Linux-syscall-note OR BSD-3-Clause' + 'GPL-2.0-or-later WITH Linux-syscall-note OR MIT' + ) depends=( gcc-libs glibc @@ -105,6 +109,7 @@ package_libcamera() { provides=(libcamera.so libcamera-base.so) meson install -C build --destdir "$pkgdir" + install -vDm 644 $pkgbase/LICENSES/{BSD-3-Clause,Linux-syscall-note,MIT}.txt -t "$pkgdir/usr/share/licenses/$pkgname/" ( cd "$pkgdir" @@ -117,6 +122,11 @@ package_libcamera() { package_libcamera-docs() { pkgdesc+=" - documentation" + license=( + CC-BY-4.0 + CC-BY-SA-4.0 + CC0-1.0 + ) mv -v $pkgname/* "$pkgdir" mv -v "$pkgdir/usr/share/doc/$pkgbase-$pkgver/" "$pkgdir/usr/share/doc/$pkgbase/" @@ -125,6 +135,13 @@ package_libcamera-docs() { package_libcamera-ipa() { pkgdesc+=" - signed IPA" + license=( + BSD-2-Clause + CC-BY-SA-4.0 + CC0-1.0 + GPL-2.0-or-later + LGPL-2.1-or-later + ) depends=( gcc-libs glibc @@ -138,10 +155,17 @@ package_libcamera-ipa() { $pkgbase/src/ipa/ipa-sign.sh "$(find build -type f -iname "*ipa-priv-key.pem")" "$_lib" "$_lib.sign" done mv -v $pkgname/* "$pkgdir" + install -vDm 644 $pkgbase/LICENSES/BSD-2-Clause.txt -t "$pkgdir/usr/share/licenses/$pkgname/" } package_libcamera-tools() { pkgdesc+=" - tools" + license=( + BSD-2-Clause + CC0-1.0 + GPL-2.0-or-later + LGPL-2.1-or-later + ) depends=( gcc-libs glibc @@ -159,10 +183,15 @@ package_libcamera-tools() { replaces=("$pkgbase-tests<0.0.1-2") mv -v $pkgname/* "$pkgdir" + install -vDm 644 $pkgbase/LICENSES/BSD-2-Clause.txt -t "$pkgdir/usr/share/licenses/$pkgname/" } package_gst-plugin-libcamera() { pkgdesc="Multimedia graph framework - libcamera plugin" + license=( + CC0-1.0 + LGPL-2.1-or-later + ) depends=( gcc-libs glibc |