[arch-commits] Commit in python-sphinx-furo/trunk (PKGBUILD)

Daniel M. Capella polyzen at gemini.archlinux.org
Sun Jan 9 23:26:56 UTC 2022


    Date: Sunday, January 9, 2022 @ 23:26:56
  Author: polyzen
Revision: 1098741

upgpkg: python-sphinx-furo 2022.01.02-2: Use system nodejs

Thanks to @felixonmars:
https://github.com/felixonmars/archriscv-packages/commit/0ce5e70072f86e6fa312cb8e1782d3d7d2063451

Modified:
  python-sphinx-furo/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-09 23:26:30 UTC (rev 1098740)
+++ PKGBUILD	2022-01-09 23:26:56 UTC (rev 1098741)
@@ -3,16 +3,24 @@
 _pkgname=furo
 pkgname=python-sphinx-$_pkgname
 pkgver=2022.01.02
-pkgrel=1
+pkgrel=2
 pkgdesc='A clean customizable documentation theme for Sphinx'
 arch=('any')
 url='https://github.com/pradyunsg/furo'
 license=('MIT')
 depends=('python-sphinx' 'python-pygments' 'python-beautifulsoup4')
-makedepends=('python-build' 'python-pip' 'python-sphinx-theme-builder' 'python-flit-core')
+makedepends=('python-build' 'python-pip' 'python-sphinx-theme-builder' 'python-flit-core'
+             'nodejs-lts-gallium' 'npm' 'expac')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
 sha512sums=('dcd2bae18c28a8623b566ef79a996a76d9157a05627b4e9c930b0ea82154992b9d2321ffe1c62fc2d014d499b7ca1f71117bcea9a1e8879a0ef12d3818cdd290')
 
+prepare() {
+  cd $_pkgname-$pkgver
+  # force use of system nodejs
+  local node_ver=$(expac %v nodejs-lts-gallium | cut -d - -f 1)
+  sed -i "s/16.13.0/$node_ver/" pyproject.toml
+}
+
 build() {
   cd $_pkgname-$pkgver
 



More information about the arch-commits mailing list