diff options
author | Will Handley | 2017-11-03 07:36:52 +0000 |
---|---|---|
committer | Will Handley | 2017-11-03 07:36:52 +0000 |
commit | 90b079a28caec248eacbfe1d185d3c0c36bb5bea (patch) | |
tree | c804e876189ef47b372c4692e228769546ad165a | |
download | aur-90b079a28caec248eacbfe1d185d3c0c36bb5bea.tar.gz |
Added a git repository version
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..312a750b751b --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +# Generated by mksrcinfo v8 +# Fri Nov 3 07:36:37 UTC 2017 +pkgbase = python-class-git + pkgdesc = CLASS: Cosmic Linear Anisotropy Solving System + pkgver = r1294.de7d9d7 + pkgrel = 1 + url = https://github.com/lesgourg/class_public + arch = any + makedepends = git + makedepends = python-setuptools + depends = cython + provides = python-class + conflicts = python-class + source = python-class::git+https://github.com/lesgourg/class_public.git + md5sums = SKIP + +pkgname = python-class-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b64b2c1c3cb1 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Will Handley <wh260@cam.ac.uk> (aur.archlinux.org/account/wjhandley) +_pkgname=class +pkgname=python-$_pkgname-git +pkgver=r1294.de7d9d7 +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 +} |