36 lines
1.0 KiB
Bash
36 lines
1.0 KiB
Bash
|
# 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
|
||
|
pkgver=10.2.0
|
||
|
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=(91ff1dd4c85af7b235d03e0860f0c4e79dd1ff580fb610668a39b5c77b4ccace)
|
||
|
|
||
|
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
|
||
|
}
|