blob: c7db59701db365376db748d47feff31f844e34a8 (
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
|
# Maintainer: Pi-Yueh Chuang <pychuang@pm.me>
pkgname=python-markdown-checklist-git
pkgver=r23.63ca633
pkgrel=1
pkgdesc='Python Markdown extension for lists of tasks with checkboxes'
arch=('any')
url='https://github.com/FND/markdown-checklist'
license=('MIT')
depends=('python-markdown')
makedepends=('git' 'python-setuptools')
checkdepends=('python-pytest')
provides=('python-markdown-checklist')
source=('git+https://github.com/FND/markdown-checklist.git')
sha256sums=('SKIP')
# for convenience
_pkgname=markdown-checklist
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$_pkgname"
python setup.py build
}
check() {
cd "$_pkgname"
pytest
}
package() {
cd "$_pkgname"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}
|