summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 514ce48cdb1a08aab9de7b410c13fa6b35d86e4f (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
52
53
54
55
56
57
58
59
# Maintainer: Butui Hu <hot123tea123@gmail.com>

pkgname=python-lvis-git
_pkgname=lvis
_pkgver=0.5.3
pkgver=0.5.3.r17.031ac21
pkgrel=1
pkgdesc='Python API for LVIS Dataset'
arch=('any')
url='https://github.com/lvis-dataset/lvis-api'
license=('BSD')
depends=(
  opencv
  python-cycler
  python-dateutil
  python-kiwisolver
  python-matplotlib
  python-numpy
  python-pyparsing
  python-pycocotools
  python-six
)
makedepends=(
  git
  cython
  python-pip
  python-setuptools
)
checkdepends=(
  hdf5
  qt5-base
)
provides=(python-lvis)
conflicts=(python-lvis)

source=("${_pkgname}::git+https://github.com/lvis-dataset/lvis-api.git")
sha512sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  printf "%s.r%s.%s" "${_pkgver}" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${_pkgname}"
  python setup.py build
}

check() {
  cd "${_pkgname}"
  python test.py
}

package() {
  cd "${_pkgname}"
  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
  install -Dm644 "LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et: