summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24a4abc445e98bd21768c3a07f30f0e0b538e6b5 (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: Vlad Glagolev <scm(at)vaygr(dot)net>

pkgname=markdown-editor
_name=Markdown-Editor
pkgver=1.0.7
pkgrel=2
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
}