diff options
author | nano13 | 2017-10-02 18:20:43 +0200 |
---|---|---|
committer | nano13 | 2017-10-02 18:20:43 +0200 |
commit | 491a89938c1c157ab441560da257613e9acb4f9a (patch) | |
tree | 9846290f1b6b7b315ff4936229eb1c8703c0ea44 | |
download | aur-491a89938c1c157ab441560da257613e9acb4f9a.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 47 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6e2170a1cb15 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-srtm-git + pkgdesc = Python parser for the Shuttle Radar Topography Mission elevation data + pkgver = 141 + pkgrel = 1 + url = https://github.com/tkrajina/srtm.py + arch = any + license = Apache + makedepends = git + makedepends = python-setuptools + source = python-srtm::git+https://github.com/tkrajina/srtm.py.git + sha256sums = SKIP + +pkgname = python-srtm-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b7f866e691a5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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=() +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/" +} + |