blob: fe70718b30a6183a021631b4b46ab1915d4a12af (
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
|
# Maintainer: Butui Hu <hot123tea123@gmail.com>
pkgname=python-pycocotools
_pkgname=pycocotools
pkgver=2.0.11
pkgrel=1
pkgdesc='Official APIs for the MS-COCO dataset'
arch=(x86_64)
url='https://pypi.org/project/pycocotools'
license=('BSD-2-Clause')
depends=(
glibc
python-matplotlib
python-numpy
)
makedepends=(
cython
python-build
python-installer
python-setuptools
python-wheel
)
source=("${_pkgname}-${pkgver}.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"
"LICENSE::https://github.com/cocodataset/cocoapi/raw/master/license.txt")
sha512sums=('b79bb8c84814d7d910c0204c00a73a02af360ebdadcead1a3ecaf9af511b15a388212f4fe6bc511aaf7d32131738423c8552bc3d88de228855bcff98b3fedd22'
'5fe64df67e41aa3fa97db466cedfbf659c308db1917d46396721e2d05146083323ef35f18b45e792f2bff70919449fc74394518d60c8ccf63979ae20ceb21595')
build() {
cd "${_pkgname}-${pkgver}"
python -m build --wheel --no-isolation --skip-dependency-check
}
package() {
cd "${_pkgname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -Dm644 "${srcdir}/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et:
|