blob: c08a01bdffbb19e97281b155c3d1ecbf9d312a60 (
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
35
36
37
38
39
40
|
# Maintainer:
# Contributor: Bjoern Franke <bjo+aur@schafweide.org>
_module="markdownify"
_pkgname="python-$_module"
pkgname="$_pkgname"
pkgver=1.1.0
pkgrel=1
pkgdesc="Convert HTML to Markdown"
url="https://github.com/matthewwithanm/python-markdownify"
license=('MIT')
arch=('any')
depends=(
'python'
'python-beautifulsoup4'
'python-six'
)
makedepends=(
'python-build'
'python-installer'
'python-setuptools-scm'
'python-wheel'
)
_pkgsrc="$_module-$pkgver"
_pkgext="tar.gz"
source=("$_pkgsrc.$_pkgext"::"https://pypi.io/packages/source/${_module::1}/$_module/$_module-$pkgver.$_pkgext")
sha256sums=('449c0bbbf1401c5112379619524f33b63490a8fa479456d41de9dc9e37560ebd')
build() {
cd "$_pkgsrc"
python -m build --wheel --no-isolation --skip-dependency-check
}
package() {
cd "$_pkgsrc"
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
|