[arch-commits] Commit in pelican/repos (2 files)
Evangelos Foutras
foutrelis at gemini.archlinux.org
Thu Dec 2 23:40:34 UTC 2021
Date: Thursday, December 2, 2021 @ 23:40:34
Author: foutrelis
Revision: 1063240
archrelease: copy trunk to community-staging-any
Added:
pelican/repos/community-staging-any/
pelican/repos/community-staging-any/PKGBUILD
(from rev 1063238, pelican/trunk/PKGBUILD)
----------+
PKGBUILD | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 65 insertions(+)
Copied: pelican/repos/community-staging-any/PKGBUILD (from rev 1063238, pelican/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2021-12-02 23:40:34 UTC (rev 1063240)
@@ -0,0 +1,65 @@
+# Maintainer: Jiachen Yang <farseerfc at gmail.com>
+# Contributor: Stefan Tatschner <rumpelsepp at sevenbyte.org>
+# Contributor: David Runge <dave at sleepmap.de>
+
+pkgname=pelican
+pkgver=4.7.1
+pkgrel=2
+pkgdesc="A tool to generate a static blog, with restructured text (or markdown) input files."
+arch=('any')
+url="https://blog.getpelican.com/"
+license=('AGPL3')
+makedepends=('python-sphinx')
+depends=('python-jinja' 'python-pygments' 'python-feedgenerator' 'python-pytz'
+ 'python-docutils' 'python-blinker' 'python-unidecode' 'python-six'
+ 'python-dateutil' 'python-rich')
+checkdepends=('python-setuptools' 'python-lxml' 'git' 'python-nose'
+ 'python-feedparser' 'python-markdown' 'python-typogrify')
+optdepends=('python-markdown: Markdown support'
+ 'asciidoc: AsciiDoc support'
+ 'python-beautifulsoup4: importing from wordpress/dotclear/posterous'
+ 'python-feedparser: importing from feeds'
+# 'python-rst2pdf: PDF generation' # FS#48890
+ 'openssh: uploading through SSH'
+ 'rsync: uploading through rsync+SSH'
+ 'lftp: uploading through FTP'
+ 's3cmd: uploading through S3'
+ 'python-ghp-import: uploading through gh-pages'
+ 'python-typogrify: typographical enhancements'
+ 'pandoc: for pelican-import auto convert'
+ 'python-mdx-video: easier embedding of youtube videos in markdown')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/getpelican/pelican/archive/$pkgver.tar.gz")
+sha512sums=('d705768b20c715d623d1cdb949bbfa6b31c315e555f0f40b71f8ca55068bb4fb2073667df9f6b0dcc1c1164a27deccb74e0d2339ec554f5ccd2350c6b1e7b18e')
+
+build() {
+ # sphinx tried to import pelican, make it happy
+ cd "$srcdir/$pkgname-$pkgver/docs"
+ PYTHONPATH=".." make man
+ PYTHONPATH=".." make text
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ LANG=en_US.UTF-8 python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+
+ cd "docs"
+
+ install -d "$pkgdir/usr/share/man/man1/"
+ install -Dm644 _build/man/*.1 "$pkgdir/usr/share/man/man1/"
+
+ install -d "$pkgdir/usr/share/doc/pelican/"
+ install -Dm644 _build/text/*.txt "$pkgdir/usr/share/doc/pelican/"
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ## TODO: fix upstream tests
+ ## --exclude="test_log_filter" # will only work with normal logger instead of nosetests logger
+ ## --exclude="test_basic_generation_works" # will only work with python-pygments==2.6.1
+ ## --exclude="test_custom_generation_works" # will only work with python-pygments==2.6.1
+ LANG=en_US.UTF-8 nosetests \
+ --exclude="test_log_filter" \
+ --exclude="test_basic_generation_works" \
+ --exclude="test_custom_generation_works"
+}
More information about the arch-commits
mailing list