diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -2,14 +2,14 @@ _pkgname=mmclassification pkgname=python-mmclassification-git -_pkgver=0.1.0 -pkgver=0.1.0.r458.894a82ea +pkgver=0.22.0.r2.5a67bc8a pkgrel=1 pkgdesc='OpenMMLab Image Classification Toolbox and Benchmark' arch=('any') url='https://github.com/open-mmlab/mmclassification' license=('Apache') depends=( + python-matplotlib python-mmcv python-numpy python-pytorch @@ -18,6 +18,12 @@ makedepends=( git python-setuptools ) +optdepends=( + python-albumentations + python-colorama + python-requests + python-rich +) provides=(python-mmclassification) conflicts=(python-mmclassification) source=("${_pkgname}::git+https://github.com/open-mmlab/mmclassification.git") @@ -25,7 +31,7 @@ sha512sums=('SKIP') pkgver() { cd "${_pkgname}" - printf "%s.r%s.%s" "${_pkgver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" | sed "s/^v//" } build() { |