blob: 0738a3929ff92f6b88a0131f6de799421366c8e8 (
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
|
# Maintainer: envolution
# Contributor: Ankit Bhatia <ankbhatia19@gmail.com>
# shellcheck shell=bash disable=SC2034,SC2154
pkgbase='python-ultralytics'
pkgname=('python-ultralytics')
_module='ultralytics'
pkgver=8.3.55
_src_folder=${_module}-${pkgver}
pkgrel=2
pkgdesc="Ultralytics YOLOv8 for SOTA object detection, multi-object tracking, instance segmentation, pose estimation and image classification."
url="https://github.com/ultralytics/ultralytics"
depends=('python-matplotlib' 'python-opencv' 'python-pillow' 'python-requests' 'python-scipy' 'python-pytorch' 'python-torchvision' 'python-tqdm' 'python-psutil' 'python-py-cpuinfo' 'python-thop' 'python-pandas' 'python-seaborn' 'python-lapx')
makedepends=('python-build' 'python-installer' 'python-wheel')
license=('AGPL-3.0-or-later')
arch=('any')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ultralytics/ultralytics/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('67f665e28fdd565ceb8e02c9b538bc6aaf90e26d532f7478be8990e2f1a3041e')
build() {
cd "${srcdir}/${_src_folder}"
python -m build --wheel --no-isolation
}
package() {
depends+=()
cd "${srcdir}/${_src_folder}"
python -m installer --destdir="${pkgdir}" dist/*.whl
find $pkgdir -type d -name "tests" -exec rm -rf {} + #this was leaving a new drectory under site_packages called 'tests'
}
# vim:set ts=2 sw=2 et:
|