diff options
author | Will Handley | 2019-08-26 12:58:21 +0100 |
---|---|---|
committer | Will Handley | 2019-08-26 12:58:21 +0100 |
commit | 7ba554c4edfe1e9563aa4d3d60addbb2f61cc348 (patch) | |
tree | ed54bbe240e567cbc54f50784355d69e2d78ff84 | |
parent | 40e587230efd16d961279e47fdc24e66e7617147 (diff) | |
download | aur-7ba554c4edfe1e9563aa4d3d60addbb2f61cc348.tar.gz |
Combined both python and python2 together
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 24 |
2 files changed, 23 insertions, 15 deletions
@@ -1,16 +1,20 @@ pkgbase = python-camb pkgdesc = Code for Anisotropies in the Microwave Background - pkgver = 1.0.6 - pkgrel = 2 + pkgver = 1.0.7 + pkgrel = 1 url = https://github.com/cmbant/CAMB arch = any license = custom makedepends = python-setuptools - depends = python-numpy - depends = gcc-fortran options = !emptydirs - source = https://github.com/cmbant/CAMB/archive/1.0.6.tar.gz + source = https://github.com/cmbant/CAMB/archive/1.0.7.tar.gz sha256sums = a33eaa474d8b8b7b7a494f9273134cf101d13db993473388cda425913b93793f pkgname = python-camb + depends = python-numpy + depends = gcc-fortran + +pkgname = python2-camb + depends = python2-numpy + depends = gcc-fortran @@ -1,14 +1,13 @@ # Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley) -_modulename=camb -pkgname=python-$_modulename -pkgver=1.0.6 -pkgrel=2 +pkgbase=python-camb +pkgname=("python-camb" "python2-camb") +pkgver=1.0.7 +pkgrel=1 pkgdesc="Code for Anisotropies in the Microwave Background" arch=(any) url="https://github.com/cmbant/CAMB" license=('custom') groups=() -depends=('python-numpy' 'gcc-fortran') makedepends=('python-setuptools') provides=() conflicts=() @@ -18,11 +17,16 @@ options=(!emptydirs) install= source=("${url}/archive/${pkgver}.tar.gz") sha256sums=('a33eaa474d8b8b7b7a494f9273134cf101d13db993473388cda425913b93793f') -#check() { -# cd "$srcdir/CAMB-$pkgver/" -# python setup.py test -#} -package() { + +package_python-camb() { + depends=('python-numpy' 'gcc-fortran') + cd "$srcdir/CAMB-$pkgver/" + python setup.py install --root="$pkgdir/" --optimize=1 + install -D -m644 $srcdir/../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} + +package_python2-camb() { + depends=('python2-numpy' 'gcc-fortran') cd "$srcdir/CAMB-$pkgver/" python setup.py install --root="$pkgdir/" --optimize=1 install -D -m644 $srcdir/../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" |