summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ed021c6be2932b6d9e58e48e0d17cf2bf9164f67 (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
# Maintainer: nano thirteen <nano13@gmx.net>

_pkgname=('python-srtm')
pkgname=('python-srtm-git')
pkgver=141
pkgrel=1
pkgdesc='Python parser for the Shuttle Radar Topography Mission elevation data'
arch=('any')
license=('Apache')
url='https://github.com/tkrajina/srtm.py'
makedepends=('git' 'python-setuptools')
depends=('python-gpxpy')
source=(${_pkgname}::git+https://github.com/tkrajina/srtm.py.git)
sha256sums=('SKIP')

pkgver() {
	cd "${srcdir}/${_pkgname}"
	git rev-list --count HEAD
}

build() {
    cd "${srcdir}/${_pkgname}"
    
    msg 'Building ...'
    python ./setup.py build
}

package() {
    cd "${srcdir}/${_pkgname}"
    
    python ./setup.py install --skip-build --root="$pkgdir/"
}