summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1b982e188f5285d3e9849c671659a212c5804e38 (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
# Contributor: Jose Riha <jose1711 gmail com>
# Maintainer: Gileri <e + aur2419 at linuxw dot info>

pkgname=mapillary_tools-git
_pkgname=mapillary_tools
pkgver=r1619.b562167
pkgrel=1
pkgdesc="Library for processing and uploading geotagged images to Mapillary"
url="https://github.com/mapillary/mapillary_tools"
depends=(
  'python-appdirs'
  'python-construct'
  'python-exifread'
  'python-gpxpy'
  'python-jsonschema'
  'python-piexif'
  'python-pynmea2'
  'python-requests'
  'python-tqdm'
  'python-typing_extensions'
)
makedepends=(git python-setuptools)
provides=(mapillary_tools)
license=('BSD')
arch=('any')
source=("${pkgname}"::'git+https://github.com/mapillary/mapillary_tools.git')
md5sums=('SKIP')

build() {
  cd $srcdir/${pkgname}
  python setup.py build
}

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

package() {
  cd $srcdir/${pkgname}
  python setup.py install --root="$pkgdir" --optimize=1
}