summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a90a5d8444d3b6c16cd9caec183c69a916b7b231 (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
# Maintainer: fanyujun <dlutfyj@outlook.com>
# Contributor:

pkgname="python-yolox"
pkgver=0.3.0
pkgrel=3
pkgdesc='YOLOX is an object detection method, an anchor-free version of YOLO, with a simpler design but better performance.'
arch=(any)
url="https://github.com/Megvii-BaseDetection/YOLOX"
license=(MIT)
depends=(python python-numpy python-opencv python-loguru python-tqdm python-thop python-tabulate python-psutil python-pycocotools python-onnx python-pytorch)
optdepends=(python-ninja tensorboard python-onnx python-onnxsim)
conflicts=()
makedepends=(python-setuptools)
source=("git+$url")
sha256sums=('SKIP')

build() {
  cd "${srcdir}/YOLOX"
  python setup.py build
}

package(){
  depends+=()
  cd "${srcdir}/YOLOX"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}