blob: b38a4daf015360d63d56f30c6b54e2912b04bcc3 (
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
|
# Maintainer: Matthias gatto <matthias.gatto at outscale dot com>
# Reference: PKGBUILD(5)
pkgname=python-diagrams-git
pkgver=0.23.4.r4.g4c2d8a37
pkgrel=1
pkgdesc='Diagram as Code'
arch=('any')
url='https://github.com/mingrammer/diagrams'
license=(MIT)
makedepends=('python-poetry' 'git')
depends=("python-graphviz")
pkgver() {
cd "${srcdir}/diagrams"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/v//'
}
conflicts=('python-diagrams')
provides=("python-diagrams=${pkgver%.r*}")
source=("git+https://github.com/mingrammer/diagrams.git")
sha256sums=("SKIP")
build() {
cd "${srcdir}/diagrams"
poetry build --format wheel
}
package() {
cd "${srcdir}/diagrams"
python -m installer --destdir="$pkgdir" dist/*.whl
install -D "${srcdir}/diagrams/LICENSE" "$pkgdir/usr/share/licenses/python-diagram/LICENSE"
}
|