python-asciidoc/PKGBUILD

36 lines
1.0 KiB
Bash
Raw Normal View History

2024-10-16 01:04:36 +08:00
# 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 <future_linux@163.com>
pkgname=python-asciidoc
2024-10-16 01:07:52 +08:00
pkgver=10.2.1
2024-10-16 01:04:36 +08:00
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)
2024-10-16 01:07:52 +08:00
sha256sums=(d9f13c285981b3c7eb660d02ca0a2779981e88d48105de81bb40445e60dddb83)
2024-10-16 01:04:36 +08:00
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
}