From a1f3309fb96be3a54581786c77c30de0f068ba8d Mon Sep 17 00:00:00 2001 From: xhaa123 Date: Fri, 1 Nov 2024 18:11:20 +0800 Subject: [PATCH] python-docutils 0.20.1-1 --- PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..b053fbd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,33 @@ +# 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 +}