python-asciidoc 10.2.0-1
This commit is contained in:
commit
d3244140e0
35
PKGBUILD
Normal file
35
PKGBUILD
Normal file
@ -0,0 +1,35 @@
|
||||
# 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user