Date: Friday, April 7, 2023 @ 14:56:05
Author: felixonmars
Revision: 1441273
archrelease: copy trunk to community-staging-any
Added:
asciidoc/repos/community-staging-any/
asciidoc/repos/community-staging-any/PKGBUILD
(from rev 1441272, asciidoc/trunk/PKGBUILD)
----------+
PKGBUILD | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
Copied: asciidoc/repos/community-staging-any/PKGBUILD (from rev 1441272,
asciidoc/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 14:56:05 UTC (rev 1441273)
@@ -0,0 +1,66 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Eli Schwartz <[email protected]>
+# Contributor: Florian Pritz <[email protected]>
+# Contributor: Chris Brannon <[email protected]>
+# Contributor: Geoffroy Carrier <[email protected]>
+# Contributor: Dan McGee <[email protected]>
+# Contributor: Jaroslaw Rosiek <[email protected]>
+# Contributor: Darwin Bautista <[email protected]>
+# Contributor: Daniel J Griffiths <[email protected]>
+
+pkgname=asciidoc
+pkgver=10.2.0
+pkgrel=3
+pkgdesc='Text document format for short documents, articles, books and UNIX
man pages'
+arch=('any')
+url='https://asciidoc.org/'
+license=('GPL')
+depends=('python' 'libxslt' 'docbook-xsl')
+checkdepends=('dblatex' 'graphviz' 'lilypond' 'python-pytest'{,-mock}
'source-highlight')
+makedepends=(python-{build,installer,wheel} python-setuptools)
+optdepends=('graphviz: graphviz-filter'
+ 'lilypond: music-filter'
+ 'imagemagick: music-filter'
+ 'source-highlight: source-highlight-filter'
+ 'dblatex: pdf generation'
+ 'fop: alternative pdf generation'
+ 'w3m: text generation'
+ 'lynx: alternative text generation')
+source=("https://github.com/asciidoc-py/asciidoc-py/releases/download/$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('237b2ba5c35c0ae7ccd4cd44ebf1d87c20b2695dae01798954416d492ef7fa0e')
+b2sums=('ed5db8fd1432b255e9c03e17805c26c76a42392c2ebeaf839b8c0aaaf38cd1a36d79b645ca4474503181200924df91218eb0997dd82335a30d6a0a1b35eb5730')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ sed -i \
+ -e '/^build: /a \\tpython3 -m build -wn' \
+ -e '/pip install/{s#pip install --root#installer -d#;s#\.$#dist/*.whl#}' \
+ Makefile.in
+ # https://github.com/asciidoc-py/asciidoc-py/issues/234
+ autoconf
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ #
https://github.com/asciidoc-py/asciidoc-py/issues/234#issuecomment-1045970138
+ ./configure \
+ --docdir /usr/share/doc/$pkgname \
+ --prefix /usr
+ make build
+}
+
+check() {
+ cd ${pkgname}-${pkgver}
+ make test
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ make DESTDIR="${pkgdir}" install
+ make DESTDIR="${pkgdir}" docs
+ install -Dm0644 -t "$pkgdir/usr/share/man/man1/" doc/*.1
+ # ascidocapi is deprecated, but still included in 10.x on a "provisional"
basis
+ local _platlib="$(python -c 'import sysconfig;
print(sysconfig.get_paths()["platlib"])')"
+ install -Dm0644 -t "${pkgdir}/${_platlib}/${pkgname}/" asciidoc/api.py
+}