blob: 56d315955b45867f42dddd6735a49cdc90191f9a (
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
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
_pkgname=mmengine
pkgname=python-mmengine
pkgver=0.8.3
pkgrel=1
pkgdesc='OpenMMLab Foundational Library for Training Deep Learning Models'
arch=('any')
url='https://github.com/open-mmlab/mmengine'
license=('Apache')
depends=(
python-addict
python-matplotlib
python-numpy
python-termcolor
python-yaml
yapf
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
source=("${_pkgname}-${pkgver}.tar.gz::https://github.com/open-mmlab/mmengine/archive/refs/tags/v${pkgver}.tar.gz")
sha512sums=('34b6bba8cb1dc642f68ca3139de2236e78e7cd5a8deb3e5911abf1691a86c2c98d5ded91e437f2be58ca57c38d8a7addc8ca5dd12c314d09f0ebc28c0d051cd8')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
}
# vim:set ts=2 sw=2 et:
|