diff options
author | graziano.giuliani | 2015-07-04 16:42:48 +0200 |
---|---|---|
committer | graziano.giuliani | 2015-07-04 16:42:48 +0200 |
commit | 183f3475fa0daf9357d518a367ececbac90a9c13 (patch) | |
tree | 0f70cb1fd115427ae3bc34f7e6645d13a1935a93 | |
download | aur-183f3475fa0daf9357d518a367ececbac90a9c13.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 40 |
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..927d691c90cd --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python2-mipp + pkgdesc = Meteorological Ingest-Processing Package (MIPP) + pkgver = v0.3.137.gb4b23a6 + pkgrel = 2 + url = https://mipp.readthedocs.org/ + arch = any + license = LGPL3 + makedepends = git + depends = python2 + source = git://github.com/loerum/mipp.git + md5sums = SKIP + +pkgname = python2-mipp + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..39ba4b987e5f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Contributor: Graziano Giuliani <graziano.giuliani@gmail.com> +# Maintainer: Graziano Giuliani <graziano.giuliani@gmail.com> + +_gitname=mipp + +pkgname=python2-mipp +pkgrel=2 +pkgver=v0.3.137.gb4b23a6 +pkgdesc="Meteorological Ingest-Processing Package (MIPP)" +arch=('any') +url="https://mipp.readthedocs.org/" +license=('LGPL3') +depends=('python2') +makedepends=('git') +source=(git://github.com/loerum/$_gitname.git) +md5sums=('SKIP') + +pkgver() { + cd $srcdir/$_gitname + # Use the tag of the last commit + git describe --always | sed 's|-|.|g' +} + +build() { + cd "$srcdir/$_gitname" + # We enforce this to be a strictly python2 package + sed -i -e "s|^#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|^#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + -e "s|^#![ ]*/bin/env python$|#!/usr/bin/env python2|" \ + $(find ${srcdir} -name '*.py') + python2 setup.py build_ext --inplace + python2 setup.py build +} + +package() { + cd "$srcdir/$_gitname" + python2 setup.py install --root="$pkgdir" --optimize=1 +} + +# vim:set ts=2 sw=2 et: |