diff options
author | Will Handley | 2019-11-07 12:51:15 +0000 |
---|---|---|
committer | Will Handley | 2019-11-07 12:51:15 +0000 |
commit | eda1edf4b4f2b4e748fc46e27dee875bd4b9cb61 (patch) | |
tree | b1121bd9970a0704e5f3e31abffeae31d1f65bd6 | |
parent | 4be7ae7cbd8aa467816bc49b63bdc40cf487e70d (diff) | |
download | aur-eda1edf4b4f2b4e748fc46e27dee875bd4b9cb61.tar.gz |
Updated to 2.7.2 and added a python2-class
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 25 |
2 files changed, 23 insertions, 16 deletions
@@ -1,16 +1,16 @@ -# Generated by mksrcinfo v8 -# Tue Sep 11 11:25:09 UTC 2018 pkgbase = python-class pkgdesc = CLASS: Cosmic Linear Anisotropy Solving System - pkgver = 2.7.0 + pkgver = 2.7.2 pkgrel = 1 url = https://github.com/lesgourg/class_public arch = any - makedepends = python-setuptools - depends = cython options = !emptydirs - source = https://github.com/lesgourg/class_public/archive/v2.7.0.tar.gz - sha256sums = aad63f9d12e557000ef84f4cc5644b39d056e5a0c639deb1c2682af7f1328d91 + source = https://github.com/lesgourg/class_public/archive/v2.7.2.tar.gz + sha256sums = 06a0debf48fc6f06e6e8c0b82c36929d9475874f2773de57d7cea4d57f1467c3 pkgname = python-class + depends = cython + +pkgname = python2-class + depends = cython2 @@ -1,16 +1,13 @@ # Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley) -_modulename=class -_python=python -pkgname=${_python}-$_modulename -pkgver=2.7.0 +pkgbase=python-class +pkgname=("python-class" "python2-class") +pkgver=2.7.2 pkgrel=1 pkgdesc="CLASS: Cosmic Linear Anisotropy Solving System" arch=(any) url="https://github.com/lesgourg/class_public" license=() groups=() -depends=('cython') -makedepends=("${_python}-setuptools") provides=() conflicts=() replaces=() @@ -18,11 +15,21 @@ backup=() options=(!emptydirs) install= source=("${url}/archive/v${pkgver}.tar.gz") -sha256sums=('aad63f9d12e557000ef84f4cc5644b39d056e5a0c639deb1c2682af7f1328d91') -package() { +sha256sums=('06a0debf48fc6f06e6e8c0b82c36929d9475874f2773de57d7cea4d57f1467c3') +package_python-class() { + depends=('cython') cd "$srcdir/class_public-${pkgver}/" make -j libclass.a cd python sed -i 's/libraries=\["class"\]/libraries=["class", "mvec", "m"]/' setup.py - ${_python} setup.py install --root="$pkgdir/" --optimize=1 + python setup.py install --root="$pkgdir/" --optimize=1 +} + +package_python2-class() { + depends=('cython2') + cd "$srcdir/class_public-${pkgver}/" + make -j libclass.a + cd python + sed -i 's/libraries=\["class"\]/libraries=["class", "mvec", "m"]/' setup.py + python2 setup.py install --root="$pkgdir/" --optimize=1 } |