blob: b7d42898d767d3aa50bf251fac2154338c162c3e (
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
51
|
# Maintainer: daddodev
pkgname=pimpmyrice-git
provides=("pimpmyrice")
conflicts=("pimpmyrice-git" "pimpmyrice")
pkgdesc="The overkill rice manager (from git)"
url="https://github.com/daddodev/pimpmyrice"
pkgver=0.1.0
pkgrel=1
arch=("any")
license=("MIT")
depends=(
"git"
"python>=3.10"
"python-setuptools"
"python-requests"
"python-psutil"
"python-docopt"
"python-rich"
"python-jinja"
"python-pyyaml"
"python-scikit-learn"
"python-opencv"
"python-typing_extensions"
"python-pydantic"
"python-pydantic-extra-types"
)
makedepends=(
"python-build"
"python-installer"
"python-wheel"
"python-setuptools"
)
source=("git+https://github.com/daddodev/pimpmyrice.git")
md5sums=("SKIP")
prepare() {
git -C "${srcdir}/pimpmyrice" clean -dfx
}
build() {
cd pimpmyrice
python -m build --wheel --no-isolation
}
package() {
cd pimpmyrice
python -m installer --destdir="$pkgdir" dist/*.whl
# license
install -Dm0644 -t "$pkgdir/usr/share/licenses/${pkgname}" LICENSE
}
|