blob: 8081311a86655ac22b3f0389c63384b80e2ec735 (
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
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
pkgname=labelme
pkgver=5.8.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-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=('49457bbfbbddf7579c8b6b893b0eb1d93d074ddf0de5bb8dafe17bb9b249b7b9ea647a775b079e234202cef8b2f5e5502bdc5889c2a3de78edc77ec553af2365'
'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.png" "${pkgdir}/usr/share/pixmaps/labelme.png"
install -Dm644 "${srcdir}/labelme.desktop" -t "${pkgdir}/usr/share/applications"
}
# vim:set ts=2 sw=2 et:
|