blob: d715db940bad1b8d87e0044603412678344d2e22 (
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
43
44
45
46
47
48
49
50
|
# Contributor: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: TransistorLogic <liuhongwu2003@outlook.com>
# Maintainer: Sving1024 <sving1024@outlook.com>
# Author: Luogu Development Team <k@luogu.org> (https://github.com/luogu-dev)
# The copyright of this library belongs to Luogu (https://www.luogu.com.cn/).
# The library is released under LGPLv3.
_name=cyaron
pkgname=python-${_name}-git
pkgver=0.5.0.r6.g79b7a24
pkgrel=1
pkgdesc="Random Olympic-informatics test data generator"
url="https://github.com/luogu-dev/cyaron"
license=('LGPL3')
arch=('any')
depends=('python' 'python-colorful' 'python-xeger')
makedepends=(
'python-build'
'python-installer'
'python-setuptools'
'python-wheel'
'python-poetry-core'
)
source=("${_name}::git+https://github.com/luogu-dev/cyaron.git")
sha256sums=('SKIP')
validpgpkeys=('517E4E3C364C6C55C907284915AC252CE20E3FC8')
provides=('python-cyaron')
pkgver() {
cd ${srcdir}/${_name}
git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
check(){
cd ${srcdir}/${_name}-$pkgver
pytest
}
build() {
cd ${srcdir}/${_name}
python -m build --wheel --no-isolation
}
package() {
cd ${srcdir}/$_name
python -m installer --destdir="$pkgdir" dist/*.whl
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
|