blob: 77d0ac4535be0aac4b2ac65882497ba9a9ab2aa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley)
_pkgname=class
pkgname=python-$_pkgname-git
pkgver=r2004.aa92943e
pkgrel=1
pkgdesc="CLASS: Cosmic Linear Anisotropy Solving System"
arch=('any')
url="https://github.com/lesgourg/class_public"
license=()
groups=()
depends=(cython)
makedepends=(git python-setuptools)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("${pkgname%-git}::git+$url.git")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$srcdir/${pkgname%-git}"
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
}
|