git » python-docutils.git » main » tree

[main] / PKGBUILD

_pkgname=docutils
pkgname=python-$_pkgname
pkgver=0.20.1
pkgrel=1
arch=('armv7h' 'aarch64')
license=('unknown')
source=(https://files.pythonhosted.org/packages/source/d/docutils/docutils-$pkgver.tar.gz
)

build() {
	cd "$_pkgname-$pkgver"
	pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir $PWD
}

package() {
	cd "$_pkgname-$pkgver"
	pip3 install --root="$pkgdir" --no-index --find-links=dist --no-cache-dir --no-user $_pkgname

	for f in "$pkgdir"/usr/bin/rst*.py; do
		ln -svf $(basename $f) "$pkgdir"/usr/bin/$(basename $f .py)
	done
	rm -fr "$pkgdir"/usr/bin/__pycache__
}
sha256sums=('f08a4e276c3a1583a86dce3e34aba3fe04d02bba2dd51ed16106244e8a923e3b')