Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Commit

Permalink
upgpkg: libcamera 0.0.5-1: Upgrade to 0.0.5.
Browse files Browse the repository at this point in the history
Add patch to fix use of removed sphinx keyword:
sphinx-doc/sphinx#11381
Use pkgbase instead of pkgname where applicable.

git-svn-id: file:///srv/repos/svn-packages/svn@476363 eb2447ed-0c53-47e4-bac8-5bc4a241df78
  • Loading branch information
dvzrv committed May 2, 2023
1 parent ef51311 commit 7201aeb
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 10 deletions.
30 changes: 20 additions & 10 deletions libcamera/trunk/PKGBUILD
Expand Up @@ -8,13 +8,16 @@ pkgname=(
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
Expand All @@ -38,8 +41,14 @@ makedepends=(
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
Expand All @@ -52,13 +61,14 @@ _pick() {
}

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() {
Expand All @@ -68,7 +78,7 @@ build() {
-D test=true
)

arch-meson $pkgname build "${meson_options[@]}"
arch-meson $pkgbase build "${meson_options[@]}"
meson compile -C build
}

Expand Down
13 changes: 13 additions & 0 deletions libcamera/trunk/libcamera-0.0.5-sphinx.patch
@@ -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 %}

0 comments on commit 7201aeb

Please sign in to comment.