summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorandalenavals2019-03-15 01:13:18 -0300
committerandalenavals2019-03-15 01:13:18 -0300
commit048332586f6ca189f6736ca1ef938bbbef4104b7 (patch)
treeef2d94ac6472e7afb4db0cc1b226bde3509f900b /PKGBUILD
parent26036190d4ccc49c5ed4328826dccc624c8d9070 (diff)
downloadaur-python-pixmappy-git.tar.gz
clean chroot
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-xPKGBUILD23
1 files changed, 12 insertions, 11 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5185fe30bf2..e21b787eb79 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,12 +1,13 @@
# Maintainer: Andres Alejandro Navarro Alsina <aanavarroa@unal.edu.co>
# Contributor: G. Bernstein, M. Jarvis and E. Sheldon
+_pkgname=python-pixmappy-git
pkgbase=python-pixmappy-git
pkgname=("python-pixmappy-git" "python2-pixmappy-git")
pkgver=r39.b7c163f
pkgrel=1
pkgdesc="Python interface to gbdes pixel map (astrometry) solutions "
arch=('any')
-url="https://github.com/gbernstein/pixmappy"
+url="https://github.com/gbernstein/pixmappy.git"
license=('BSD')
makedepends=('git' 'python-astropy' 'python-future' 'python-numpy' 'python-scipy' 'python-yaml' 'python2-astropy' 'python2-future' 'python2-numpy' 'python2-scipy' 'python2-yaml' 'python-setuptools' 'python2-setuptools')
optdepends=('python-scikit-learn' 'python2-scikit-learn' 'python-lmfit' 'python2-lmfit')
@@ -15,43 +16,43 @@ source=("${pkgbase}::git+${url}#branch=pickle")
md5sums=('SKIP')
pkgver() {
- cd "${pkgbase}"
+ cd "$srcdir"/$_pkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
- cp -a $pkgbase{,-py2}
+ cp -a $_pkgname{,-py2}
}
build() {
- cd "$srcdir"/$pkgbase
+ cd "$srcdir"/$_pkgname
sed -i 's_distutils.core_setuptools_g' setup.py
python setup.py build
- cd "$srcdir"/$pkgbase-py2
+ cd "$srcdir"/$_pkgname-py2
sed -i 's_distutils.core_setuptools_g' setup.py
python2 setup.py build
}
check() {
- cd "$srcdir"/$pkgbase/tests
+ cd "$srcdir"/$_pkgname/tests
nosetests -v || warning 'Tests failed'
- cd "$srcdir"/$pkgbase-py2/tests
+ cd "$srcdir"/$_pkgname-py2/tests
nosetests2 -v || warning 'Tests failed'
}
package_python-pixmappy-git() {
- depends=('')
- cd $pkgbase
+ depends=('python-astropy' 'python-future' 'python-numpy' 'python-scipy' 'python-yaml')
+ cd $_pkgname
#sed -i 's_distutils.core_setuptools_g' setup.py
python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
install -Dm644 Piff_LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
package_python2-pixmappy-git() {
- depends=('')
- cd $pkgbase-py2
+ depends=('python2-astropy' 'python2-future' 'python2-numpy' 'python2-scipy' 'python2-yaml')
+ cd $_pkgname-py2
#sed -i 's_distutils.core_setuptools_g' setup.py
python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
install -Dm644 Piff_LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE