pkgname: asciidoc pkgver: '10.2.1' pkgrel: '3' pkgdesc: 'Text document format for short documents, articles, books and UNIX man pages' url: 'https://asciidoc.org' arch: x86_64 depends: [] makedepends: - autoconf - 'docbook-xsl' - libxslt - python source: - 'https://github.com/${pkgname}/${pkgname}-py3/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz' sha256sums: - SKIP build: | cd ${pkgname}-${pkgver} autoconf # https://github.com/asciidoc-py/asciidoc-py/issues/201 sed -i -e '/pip install/s/\.$/--root $(DESTDIR) ./' Makefile.in SITE=$(python -c 'import sysconfig; print(sysconfig.get_paths()["platlib"])') ./configure --prefix=/usr \ --docdir /usr/share/doc/${pkgname} \ --sysconfdir=/etc make make DESTDIR=${PKGDIR} install make DESTDIR=${PKGDIR} docs install -Dm644 asciidoc/api.py \ ${PKGDIR}/${SITE}/asciidocapi.py package: | true