# This is an example PKGBUILD file. Use this as a start to creating your own, # and remove these comments. For more information, see 'man PKGBUILD'. # NOTE: Please fill out the license field for your package! If it is unknown, # then please put 'unknown'. # Maintainer: Future Linux Team pkgname=python-asciidoc pkgver=10.2.1 pkgrel=1 pkgdesc="AsciiDoc is a text document format for writing things" arch=('x86_64') url="https://pypi.org/project/asciidoc" license=('GPL') depends=('python' 'libxslt' 'docbook-xsl') makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools') source=(https://files.pythonhosted.org/packages/source/a/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz) sha256sums=(d9f13c285981b3c7eb660d02ca0a2779981e88d48105de81bb40445e60dddb83) prepare() { cd ${pkgname#*-}-${pkgver} sed '/self.separator =/s/"/r"/' -i asciidoc/asciidoc.py } build() { cd ${pkgname#*-}-${pkgver} python3 -m build -nw } package() { cd ${pkgname#*-}-${pkgver} python3 -m installer -d ${pkgdir} dist/*.whl }