blob: 5e2945cd8e7f8f90c9edf3f58971b84560d93b83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Axel McLaren <scm(at)axml(dot)uk>
pkgname=markdown-editor
_name=Markdown-Editor
pkgver=1.0.7
pkgrel=3
pkgdesc="standalone editor for your local markdown files"
arch=('any')
url="https://github.com/ncornette/Python-Markdown-Editor"
license=('MIT')
depends=('python' 'python-markdown' 'python-bottle' 'python-pygments' 'pymdown-extensions')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"
'editor.patch')
sha256sums=('25161686b18889249847570727a69e9cba8383754f279f4baaf4113deb3fbe52'
'fb4fca31312f795006d5c01332d9e367f56b7d7f2c6f31c2c9155a0bf7f377c2')
prepare() {
cd "${_name}-${pkgver}"
patch -p0 < ../editor.patch
}
build() {
cd "${_name}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_name}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
|