# 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-docutils pkgver=0.20.1 pkgrel=1 pkgdesc="Set of tools for processing plaintext docs into formats such as HTML, XML, or LaTeX" arch=('x86_64') url="http://docutils.sourceforge.net" license=('custom') depends=('python') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') source=(https://downloads.sourceforge.net/${pkgname#*-}/${pkgname#*-}-${pkgver}.tar.gz) sha256sums=(f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b) build() { cd ${pkgname#*-}-${pkgver} python3 -m build --wheel --skip-dependency-check --no-isolation } package() { cd ${pkgname#*-}-${pkgver} python3 -m installer --destdir=${pkgdir} dist/*.whl for f in ${pkgdir}/usr/bin/*.py; do ln -s $(basename ${f}) ${pkgdir}/usr/bin/$(basename ${f} .py) done }