blob: dfbfbb1e379bf6504c2a82a67c54f08dc2d3f6d2 (
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
|
# Maintainer: Caleb Maclennan <caleb@alerque.com>
_name=pantable
pkgname=python-$_name-git
pkgver=0.14.2.r21.gba26525
pkgrel=1
pkgdesc='CSV Tables in Markdown: Pandoc Filter for CSV Tables'
arch=('any')
url="https://github.com/ickc/$_name"
license=('GPL3')
_pydeps=(panflute
numpy
yaml)
depends=(pandoc
python
"${_pydeps[@]/#/python-}")
makedepends=('git'
'python-build'
'python-poetry-core'
'python-installer')
provides=("${pkgname%-git}=$pkgver")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd "${pkgname}"
git describe --long --tags --abbrev=7 HEAD |
sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "${pkgname}"
python -m build -wn
}
package() {
cd "${pkgname}"
python -m installer -d "$pkgdir" dist/*.whl
}
|