diff options
author | andalenavals | 2018-01-30 04:19:25 -0200 |
---|---|---|
committer | andalenavals | 2018-01-30 04:19:25 -0200 |
commit | 7f4723e7f7f0b117a1458d7fc321bd166d0371f0 (patch) | |
tree | 43f7dbcf1376c49c80f75e16dbe5a183bfc839ae | |
download | aur-7f4723e7f7f0b117a1458d7fc321bd166d0371f0.tar.gz |
version 1.0
-rw-r--r-- | .SRCINFO | 38 | ||||
-rw-r--r-- | PKGBUILD | 61 |
2 files changed, 99 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..04fb45461568 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,38 @@ +pkgbase = python-piff-git + pkgdesc = Piff is a Python software package for modeling the point-spread function (PSF) across multiple detectors in the full field of view + pkgver = v0.1.0.r527.250432f + pkgrel = 1 + url = https://github.com/rmjarvis/Piff + arch = any + license = BSD + makedepends = git + makedepends = python + makedepends = libffi + makedepends = python-cffi + makedepends = python-numpy + makedepends = python-scipy + makedepends = python-pyaml + makedepends = python-treecorr-git + makedepends = python-fitsio-git + makedepends = python-scikit-learn + makedepends = python-lmfit + makedepends = python-matplotlib + makedepends = python2 + makedepends = python2-cffi + makedepends = python2-numpy + makedepends = python2-scipy + makedepends = python2-pyaml + makedepends = python2-treecorr-git + makedepends = python2-fitsio-git + makedepends = python2-scikit-learn + makedepends = python2-lmfit + makedepends = python2-matplotlib + source = python-piff-git::git+https://github.com/rmjarvis/Piff + md5sums = SKIP + +pkgname = python-piff-git + depends = python + +pkgname = python2-piff-git + depends = python2 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c4c0a7873c30 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,61 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Andres Alejandro Navarro Alsina <aanavarroa@unal.edu.co> +# Contributor: M. Jarvis +pkgbase=python-piff-git +pkgname=('python-piff-git' 'python2-piff-git') +pkgver=v0.1.0.r527.250432f +pkgrel=1 +pkgdesc=" Piff is a Python software package for modeling the +point-spread function (PSF) across multiple detectors in the full +field of view" +arch=('any') +url="https://github.com/rmjarvis/Piff" +license=('BSD') +makedepends=('git' 'python' 'libffi' 'python-cffi' 'python-numpy' 'python-scipy' 'python-pyaml' 'python-treecorr-git' 'python-fitsio-git' 'python-scikit-learn' 'python-lmfit' 'python-matplotlib' 'python2' 'python2-cffi' 'python2-numpy' 'python2-scipy' 'python2-pyaml' 'python2-treecorr-git' 'python2-fitsio-git' 'python2-scikit-learn' 'python2-lmfit' 'python2-matplotlib' ) +source=("${pkgbase}::git+${url}") +md5sums=('SKIP') + +pkgver() { + cd "${pkgbase}" + printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" +} + +prepare() { + cp -a $pkgbase{,-py2} +} + +build() { + cd "$srcdir"/$pkgbase + python setup.py build + + cd "$srcdir"/$pkgbase-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/$pkgbase/tests + nosetests -v || warning 'Tests failed' + + cd "$srcdir"/$pkgbase-py2/tests + nosetests2 -v || warning 'Tests failed' +} + +package_python-piff-git() { + depends=('python') + cd $pkgbase + python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE +} + +package_python2-piff-git() { + depends=('python2') + cd $pkgbase-py2 + python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 + mv ${pkgdir}/usr/bin/piffify ${pkgdir}/usr/bin/piffify_py2 + mv ${pkgdir}/usr/bin/plotify ${pkgdir}/usr/bin/plotify_py2 + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE +}
\ No newline at end of file |