In some cases this will introduce cycles which could likely be cleaned up by only depending on some unix tools instead of the whole autotools. Rebuilding doesn't make much sense at this point since it just adds a subset of base-devel which is still installed by default.
51 lines
1.5 KiB
Bash
51 lines
1.5 KiB
Bash
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
|
|
|
pkgname=asciidoc
|
|
pkgver=9.1.1
|
|
pkgrel=1
|
|
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' 'autotools')
|
|
groups=('base-devel')
|
|
# 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=("https://github.com/asciidoc/asciidoc-py3/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz"
|
|
0001-W32-confdir.msys2.patch)
|
|
sha256sums=('ea39760ac2739496c14002902571592dc2ae2fa673296ec141a9e491d9c11fca'
|
|
'71f44b513f627b133afead38576fcb8a5460d0514174a4ce219c6ea761d8b40c')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
patch -p1 -i ${srcdir}/0001-W32-confdir.msys2.patch
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
autoreconf -fi
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
make install DESTDIR=${pkgdir}
|
|
|
|
local _pyver=$(/usr/bin/python -c "import sys;sys.stdout.write('.'.join(map(str, sys.version_info[:2])))")
|
|
|
|
install -Dm644 asciidocapi.py \
|
|
${pkgdir}/usr/lib/python${_pyver}/site-packages/asciidocapi.py
|
|
}
|