summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1585ed12ecc2bac53267b8d5a2c3b8944085d496 (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
# Maintainer: daddodev
pkgname=pimpmyrice
provides=("pimpmyrice")
conflicts=("pimpmyrice-git" "pimpmyrice")
pkgdesc="The overkill rice manager"
url="https://github.com/daddodev/pimpmyrice"
pkgver=0.3.2
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=("$pkgname-$pkgver.tar.gz::https://pypi.python.org/packages/source/p/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=("SKIP")


build() {
    cd "$srcdir/$pkgname-$pkgver"
    python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/$pkgname-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl

    # license
    install -Dm0644 -t "$pkgdir/usr/share/licenses/${pkgname}" LICENSE
}