Date: Monday, May 25, 2020 @ 13:07:51 Author: felixonmars Revision: 634221
archrelease: copy trunk to community-any Added: asciidoc/repos/community-any/PKGBUILD (from rev 634220, asciidoc/trunk/PKGBUILD) Deleted: asciidoc/repos/community-any/PKGBUILD ----------+ PKGBUILD | 133 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 66 insertions(+), 67 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-05-25 13:07:33 UTC (rev 634220) +++ PKGBUILD 2020-05-25 13:07:51 UTC (rev 634221) @@ -1,67 +0,0 @@ -# $Id$ -# Contributor: Chris Brannon <cmbranno...@gmail.com> -# Contributor: Geoffroy Carrier <geoff...@archlinux.org> -# Contributor: Dan McGee <d...@archlinux.org> -# Contributor: Jaroslaw Rosiek <philos...@interia.pl> -# Contributor: Darwin Bautista <djclue...@gmail.com> -# Contributor: Daniel J Griffiths <ghost1...@archlinux.us> -# Maintainer: Florian Pritz <f...@xinu.at> - -pkgname=asciidoc -pkgver=8.6.10 -pkgrel=1 -pkgdesc='Text document format for short documents, articles, books and UNIX man pages.' -arch=('any') -url='http://www.methods.co.nz/asciidoc/' -license=('GPL') -depends=('python2' 'libxslt' 'docbook-xsl') -optdepends=('lilypond: music-filter' - 'imagemagick: music-filter (used in conjunction with lilypond)' - 'source-highlight: source-highlight-filter' - 'dblatex: pdf generation' - 'fop: alternative pdf generation' - 'lynx: text generation' - 'w3m: text generation (alternative to lynx)') -source=("${pkgname}-${pkgver}.tar.gz::https://github.com/asciidoc/asciidoc/archive/${pkgver}.tar.gz") -md5sums=('4e69960f4d431780e9828f53417d8d7a') - -prepare() { - cd ${pkgname}-${pkgver} - - # python2 fix - #for file in asciidocapi.py a2x.py asciidoc.py filters/music/music2png.py filters/latex/latex2png.py \ - #filters/code/code-filter.py filters/graphviz/graphviz2png.py; do - #sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file - #done - #sed -i -e 's_sys:python_sys:python2_g' -e 's_sys3:python_sys3:python2_g' xhtml11.conf - #sed -i 's_sys:python_sys:python2_g' xhtml11-quirks.conf - #sed -i -e 's/{python}/{python2}/g' \ - #-e 's#{language@python:py:#{language@python2:py:#' \ - #filters/source/source-highlight-filter.conf \ - #html5.conf xhtml11.conf xhtml11-quirks.conf - #sed -i -e "s#'python'#'python2'#g" filters/code/code-filter.py - sed -i -e 's#python a2x.py#python2 a2x.py#' Makefile.in -} - -build() { - cd ${pkgname}-${pkgver} - - autoconf - ./configure \ - --prefix=/usr \ - --sysconfdir=/etc -} - -package() { - cd ${pkgname}-${pkgver} - - make install DESTDIR=${pkgdir} - make docs DESTDIR=${pkgdir} - - install -Dm644 asciidocapi.py \ - ${pkgdir}/usr/lib/python2.7/site-packages/asciidocapi.py - - # fix FS#21579 - [asciidoc] 8.6.2-2 "asciidoc" table style doesn't work (mismatched python version) - #sed -i 's/python/python2/' \ - #${pkgdir}/etc/asciidoc/asciidoc.conf -} Copied: asciidoc/repos/community-any/PKGBUILD (from rev 634220, asciidoc/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-05-25 13:07:51 UTC (rev 634221) @@ -0,0 +1,66 @@ +# Contributor: Chris Brannon <cmbranno...@gmail.com> +# Contributor: Geoffroy Carrier <geoff...@archlinux.org> +# Contributor: Dan McGee <d...@archlinux.org> +# Contributor: Jaroslaw Rosiek <philos...@interia.pl> +# Contributor: Darwin Bautista <djclue...@gmail.com> +# Contributor: Daniel J Griffiths <ghost1...@archlinux.us> +# Maintainer: Florian Pritz <f...@xinu.at> + +pkgname=asciidoc +pkgver=8.6.10 +pkgrel=2 +pkgdesc='Text document format for short documents, articles, books and UNIX man pages.' +arch=('any') +url='https://www.methods.co.nz/asciidoc/' +license=('GPL') +depends=('python2' 'libxslt' 'docbook-xsl') +optdepends=('lilypond: music-filter' + 'imagemagick: music-filter (used in conjunction with lilypond)' + 'source-highlight: source-highlight-filter' + 'dblatex: pdf generation' + 'fop: alternative pdf generation' + 'lynx: text generation' + 'w3m: text generation (alternative to lynx)') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/asciidoc/asciidoc/archive/${pkgver}.tar.gz") +md5sums=('4e69960f4d431780e9828f53417d8d7a') + +prepare() { + cd ${pkgname}-${pkgver} + + # python2 fix + #for file in asciidocapi.py a2x.py asciidoc.py filters/music/music2png.py filters/latex/latex2png.py \ + #filters/code/code-filter.py filters/graphviz/graphviz2png.py; do + #sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file + #done + #sed -i -e 's_sys:python_sys:python2_g' -e 's_sys3:python_sys3:python2_g' xhtml11.conf + #sed -i 's_sys:python_sys:python2_g' xhtml11-quirks.conf + #sed -i -e 's/{python}/{python2}/g' \ + #-e 's#{language@python:py:#{language@python2:py:#' \ + #filters/source/source-highlight-filter.conf \ + #html5.conf xhtml11.conf xhtml11-quirks.conf + #sed -i -e "s#'python'#'python2'#g" filters/code/code-filter.py + sed -i -e 's#python a2x.py#python2 a2x.py#' Makefile.in +} + +build() { + cd ${pkgname}-${pkgver} + + autoconf + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc +} + +package() { + cd ${pkgname}-${pkgver} + + make install DESTDIR=${pkgdir} + make docs DESTDIR=${pkgdir} + + install -Dm644 asciidocapi.py \ + ${pkgdir}/usr/lib/python2.7/site-packages/asciidocapi.py + + # fix FS#21579 - [asciidoc] 8.6.2-2 "asciidoc" table style doesn't work (mismatched python version) + #sed -i 's/python/python2/' \ + #${pkgdir}/etc/asciidoc/asciidoc.conf +}