Date: Monday, April 10, 2023 @ 18:09:42
  Author: arojas
Revision: 1444559

archrelease: copy trunk to community-staging-any

Added:
  nikola/repos/community-staging-any/
  nikola/repos/community-staging-any/PKGBUILD
    (from rev 1444558, nikola/trunk/PKGBUILD)
  nikola/repos/community-staging-any/keys/

----------+
 PKGBUILD |   73 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 73 insertions(+)

Copied: nikola/repos/community-staging-any/PKGBUILD (from rev 1444558, 
nikola/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-10 18:09:42 UTC (rev 1444559)
@@ -0,0 +1,73 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=Nikola
+pkgname=nikola
+pkgver=8.2.3
+pkgrel=2
+pkgdesc="A static site and blog generator"
+arch=(any)
+url="https://getnikola.com/";
+license=(MIT)
+# still requires python-setuptools due to the use of pkg_resources
+depends=(python-babel python-blinker python-doit python-dateutil
+python-docutils python-logbook python-lxml python-mako python-markdown
+python-natsort python-piexif python-pillow python-pygments python-pyrss2gen
+python-requests python-setuptools python-unidecode python-yapsy)
+makedepends=(jupyter-notebook python-aiohttp python-build python-ghp-import
+python-husl python-installer python-ipykernel python-jinja python-micawber
+python-phpserialize python-pygal python-pyphen python-ruamel-yaml python-toml
+python-typogrify python-watchdog python-wheel zeromq)
+checkdepends=(python-freezegun python-pytest)
+optdepends=(
+  'jupyter-notebook: for .ipynb support'
+  'python-aiohttp: for `nikola auto`'
+  'python-ghp-import: for upload to Github pages'
+  'python-hsluv: for section color mixing'
+  'python-html5lib: for HTML5 minify and format support'
+  'python-husl: for optional color support'
+  'python-ipykernel: for .ipynb support'
+  'python-jinja: for jinja2 based themes'
+  'python-micawber: for embedding media in posts'
+  'python-phpserialize: for Wordpress import'
+  'python-pygal: for SVG graph plotting'
+  'python-pyphen: for hyphenation support'
+  'python-ruamel-yaml: for YAML support'
+  'python-toml: for TOML support'
+  'python-typogrify: for typographical enhancements'
+  'python-watchdog: for `nikola auto`'
+)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz{,.asc})
+sha512sums=('fbb107f975a4eeb369469eaa7a83e6fd342202530f91a0428c854f2eca28315268d6623983a078496943878a9f0548a5939184a2349d468cc0ac7152116b48b4'
+            'SKIP')
+b2sums=('690ea8584b9b11b1f26b768dc6daaded2f976b54a7be3b75f83d50cda3721f3f0051fd7ff7be3c38ed871ac905f604f891936e4ea72381b8f88a461f4d227587'
+        'SKIP')
+validpgpkeys=('DF32C99CFF84282CF9D4CF7171023DBD5EAAEA16') # Chris Warrick 
<[email protected]>
+
+prepare() {
+  sed -e '/addopts/d' -i $_name-$pkgver/setup.cfg
+}
+
+build() {
+  cd $_name-$pkgver
+  python -m build --wheel --no-isolation
+
+  # shell completions
+  python -m $pkgname tabcompletion --shell bash --hardcode-tasks > 
${pkgname}_bash
+  python -m $pkgname tabcompletion --shell zsh --hardcode-tasks > 
${pkgname}_zsh
+  # ensure that the shell completion is assigned to the correct executable
+  sed -e "s/__main__.py/$pkgname/g" -i "${pkgname}_"{bash,zsh}
+}
+
+check() {
+  cd $_name-$pkgver
+  pytest -vv -k "not test_compiling_markdown"
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 LICENSE.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -vDm 644 {AUTHORS,CHANGES}.txt {CONTRIBUTING,README}.rst -t 
"$pkgdir/usr/share/doc/$pkgname/"
+  install -vDm 644 ${pkgname}_bash 
"$pkgdir/usr/share/bash-completion/completions/$pkgname"
+  install -vDm 644 ${pkgname}_zsh 
"$pkgdir/usr/share/zsh/site-functions/_$pkgname"
+}

Reply via email to