[arch-commits] Commit in python-sphinx-furo/trunk (PKGBUILD)
Filipe Laíns
ffy00 at archlinux.org
Wed Nov 11 15:00:05 UTC 2020
Date: Wednesday, November 11, 2020 @ 15:00:04
Author: ffy00
Revision: 750795
upgpkg: python-sphinx-furo 2020.11.10.beta15-1
Modified:
python-sphinx-furo/trunk/PKGBUILD
----------+
PKGBUILD | 20 ++++++++++++++------
1 file changed, 14 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-11-11 14:58:06 UTC (rev 750794)
+++ PKGBUILD 2020-11-11 15:00:04 UTC (rev 750795)
@@ -2,26 +2,34 @@
_pkgname=furo
pkgname=python-sphinx-$_pkgname
-pkgver=2020.10.15.beta13
-pkgrel=2
+pkgver=2020.11.10.beta15
+pkgrel=1
pkgdesc='A clean customizable documentation theme for Sphinx'
arch=('any')
url='https://github.com/pradyunsg/furo'
license=('MIT')
depends=('python-sphinx' 'python-beautifulsoup4')
-makedepends=('python-setuptools' 'python-dephell' 'python-myst-parser' 'python-sphinx-inline-tabs')
+makedepends=('npm' 'gulp' 'python2' 'python-setuptools' 'python-dephell' 'python-myst-parser' 'python-sphinx-inline-tabs')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
-sha512sums=('025c5d853fc8fd12c7d4701cbffe948e530eec38b50e726a8c5a675216c9450a0ff7a495a68a72c80f8b7fc507ecc2e2d6708308625dfe89ee40d78516409a8c')
+sha512sums=('cadb1be5982b71f944397428515fc9821bd6874db6ce67a66f725342d109992ba2ad9d2de7029d17de4e6a2c5fb1746f3b4b5df92ba4d1fba66ac2b662746ea2')
prepare() {
cd $_pkgname-$pkgver
- dephell deps convert --from pyproject.toml --to setup.py
+ npm install
}
build() {
cd $_pkgname-$pkgver
+ gulp build
+ rm -rf node_modules
+
+ # this should be in prepare() but it evaluates the package data when we run dephell,
+ # instead of using the glob module in setup.py or something similar, so we need to
+ # build the data first with gulp and only then we can generate the setup.py
+ dephell deps convert --from pyproject.toml --to setup.py
+
python setup.py build
# sphinx needs this theme installed because it is uses it.
@@ -44,7 +52,7 @@
install -dm 755 "$pkgdir"/usr/share/doc/$pkgname
cp -r -a --no-preserve=ownership build/docs/html "$pkgdir"/usr/share/doc/$pkgname
- rm -rf "$pkgdir"/usr/share/doc/$pkgname/docs/.doctrees
+ rm -rf "$pkgdir"/usr/share/doc/$pkgname/html/.doctrees
install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list