Date: Tuesday, May 2, 2023 @ 21:22:58
  Author: dvzrv
Revision: 476363

upgpkg: libcamera 0.0.5-1: Upgrade to 0.0.5.

Add patch to fix use of removed sphinx keyword:
https://github.com/sphinx-doc/sphinx/pull/11381
Use pkgbase instead of pkgname where applicable.

Added:
  libcamera/trunk/libcamera-0.0.5-sphinx.patch
Modified:
  libcamera/trunk/PKGBUILD

------------------------------+
 PKGBUILD                     |   30 ++++++++++++++++++++----------
 libcamera-0.0.5-sphinx.patch |   13 +++++++++++++
 2 files changed, 33 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-05-02 21:18:08 UTC (rev 476362)
+++ PKGBUILD    2023-05-02 21:22:58 UTC (rev 476363)
@@ -8,13 +8,16 @@
   libcamera-tools
   gst-plugin-libcamera
 )
-pkgver=0.0.4
-_commit=6a57d964abdb3f24608c0fc2839d96e02eebddeb  # refs/tags/v0.0.4
-pkgrel=4
+pkgver=0.0.5
+_commit=5fa37d7623053ef5a693b276986a44d010d057e5  # refs/tags/v0.0.5
+pkgrel=1
 pkgdesc="A complex camera support library for Linux, Android, and ChromeOS"
 arch=(x86_64)
 url="https://libcamera.org/";
-license=(LGPL2.1 GPL2)
+license=(
+  LGPL2.1
+  GPL2
+)
 depends=(glibc)
 makedepends=(
   doxygen
@@ -38,8 +41,14 @@
   systemd
   texlive-core
 )
-source=(git+https://git.libcamera.org/$pkgname/$pkgname.git#tag=$_commit)
-sha256sums=('SKIP')
+source=(
+  git+https://git.libcamera.org/$pkgbase/$pkgbase.git#tag=$_commit
+  $pkgbase-0.0.5-sphinx.patch
+)
+sha512sums=('SKIP'
+            
'52abec885c0a38c042622bc1bb106f7cefc19e3d8d0b6dcba7c4fadae3ad9303d5ae74447a72abe710598bc2162d57900be54bfe0de18d4c0842160c1c65b35a')
+b2sums=('SKIP'
+        
'e43847222ad644a23761f7f601891971f499552156d8dfd5922732d134e5a09202c6c4fa3880e13c1ae950d34c5a3617ada12fabc06368e3201110ac5455af7f')
 
 _pick() {
   local p="$1" f d; shift
@@ -52,13 +61,14 @@
 }
 
 prepare() {
-  cd $pkgname
+  cd $pkgbase
 
   # add version, so that utils/gen-version.sh may rely on it
   printf "%s\n" "$pkgver" > .tarball-version
 
-  # Fix exponential callback explosion
-  git cherry-pick -n a146e05125fdac75b8ffb6a818e00a446cec65dd
+  # fix use of python-sphinx
+  # https://github.com/sphinx-doc/sphinx/pull/11381
+  git apply -v ../$pkgbase-0.0.5-sphinx.patch
 }
 
 build() {
@@ -68,7 +78,7 @@
     -D test=true
   )
 
-  arch-meson $pkgname build "${meson_options[@]}"
+  arch-meson $pkgbase build "${meson_options[@]}"
   meson compile -C build
 }
 

Added: libcamera-0.0.5-sphinx.patch
===================================================================
--- libcamera-0.0.5-sphinx.patch                                (rev 0)
+++ libcamera-0.0.5-sphinx.patch        2023-05-02 21:22:58 UTC (rev 476363)
@@ -0,0 +1,13 @@
+diff --git a/Documentation/theme/layout.html b/Documentation/theme/layout.html
+index fcc6d221..339aacd6 100644
+--- a/Documentation/theme/layout.html
++++ b/Documentation/theme/layout.html
+@@ -35,7 +35,7 @@ SPDX-License-Identifier: CC-BY-SA-4.0
+ 
+   {# RTD hosts this file, so just load on non RTD builds #}
+   {% if not READTHEDOCS %}
+-    <link rel="stylesheet" href="{{ pathto('_static/' + style, 1) }}" 
type="text/css" />
++    <link rel="stylesheet" href="{{ pathto('_static/' + styles[-1], 1) }}" 
type="text/css" />
+   {% endif %}
+ 
+   {% for cssfile in css_files %}

Reply via email to