diff options
author | Pi-Yueh Chuang | 2020-06-03 19:04:38 -0400 |
---|---|---|
committer | Pi-Yueh Chuang | 2020-06-03 19:04:38 -0400 |
commit | 3aa53aff4b89fcbc3ace97513df9b6fa5819d48f (patch) | |
tree | 5206027ec93bca786ac4107b266716de171bf63e /PKGBUILD | |
download | aur-3aa53aff4b89fcbc3ace97513df9b6fa5819d48f.tar.gz |
init repo
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c7db59701db3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} |