summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fc97c2b9b1d980872709f9e911a7f3224ef0a226 (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
# Maintainer: devome <evinedeng@hotmail.com>

_pkgname=mtcnn-runtime
_pipname="${_pkgname//-/_}"
pkgname="python-${_pkgname}"
pkgver=1.0.0
pkgrel=1
pkgdesc="Python library for streamlined tracking and management of AI training processes."
arch=("any")
url="https://github.com/SAKURA-CAT/${_pkgname}"
license=('Apache-2.0')
depends=("python-onnxruntime" "python-opencv")
makedepends=('python-build' 'python-hatch-fancy-pypi-readme' 'python-hatch-requirements-txt' 'python-installer' 'python-setuptools' 'python-wheel')
source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pipname::1}/${_pipname}/${_pipname}-${pkgver}.tar.gz")
sha256sums=('dc48d6566ff0229a028c5074f66989a17ed36ed5e41fe49c973925f8a5043d47')

prepare() {
    cd "${_pipname}-${pkgver}"
    sed -e "s|filename = \"requirements.txt\"|files = [ \"requirements.txt\" ]|" \
        -e "s|\"optional-dependencies\", ||" \
        -i pyproject.toml
}

build() {
    cd "${_pipname}-${pkgver}"
    python -m build --wheel --no-isolation
}

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