diff options
author | David Runge <dvzrv@archlinux.org> | 2024-01-24 14:06:03 +0100 |
---|---|---|
committer | David Runge <dvzrv@archlinux.org> | 2024-01-24 14:06:03 +0100 |
commit | fc263ec8459f822b36b90a520812f3af2ad7d08a (patch) | |
tree | 894e5e668b0ceec2014037ddf7e2ab1069c27a5e /PKGBUILD | |
parent | 81ef56ce1d8917ef1554557282beec02e0834c7a (diff) |
upgpkg: 0.2.0-1
Switch to correct SPDX license identifiers for packages.
Add `pkgver()` function as we are building from git sources.
Remove now unneeded patch.
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 63 |
1 files changed, 46 insertions, 17 deletions
@@ -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 |