blob: 96a504e3a7f2c671bee076afff9e6703b04863f3 (
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
41
42
|
# Maintainer: Pi-Yueh Chuang <pychuang@pm.me>
pkgname=python-markdown-checklist-git
pkgver=r25.8030283
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() {
# install through setuptools
cd "$_pkgname"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
# install license to /usr/share/license/python-markdown-checklist-git
install -Dm644 "LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
}
|