blob: 3b1fa23cac73408fe5645380f294d8f25dee8330 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
pkgname=labelme
pkgver=7.9.1
pkgrel=1
pkgdesc='Image Polygonal Annotation with Python (polygon, rectangle, circle, line, point and image-level flag annotation).'
arch=('any')
url='https://github.com/wkentaro/labelme'
license=('GPL-3.0-or-later')
depends=(
gdown
python-cmap
python-imgviz
python-loguru
python-matplotlib
python-natsort
python-numpy
python-onnxruntime
python-osam
python-pillow
python-pyqt5
python-scikit-image
python-yaml
)
makedepends=(
python-build
python-hatchling
python-hatch-fancy-pypi-readme
python-hatch-vcs
python-installer
python-wheel
)
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/wkentaro/labelme/archive/v${pkgver}.tar.gz"
"labelme.desktop::https://github.com/wkentaro/labelme/raw/refs/tags/v5.6.1/labelme.desktop"
)
sha512sums=('62fb2682ab77fa23100db6f7224dcff57bcf972fc37519d7db45ad7e32361ec123509f989a6d1b208dfade7966f0b3fe0d1af9cb73aa6df7dc01112a3928c282'
'4dfe6a42ed28560e4cc557feead644d2623c0c4a364e2f244d40f670069ed9d64f89017d5425c8cf9db38b6c54bdbb414d863d772200ca8eb5061f56eb7555b1')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} \
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 "labelme/icons/icon-256.png" "${pkgdir}/usr/share/pixmaps/labelme.png"
install -Dm644 "${srcdir}/labelme.desktop" -t "${pkgdir}/usr/share/applications"
}
# vim:set ts=2 sw=2 et:
|