summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorandalenavals2019-03-26 13:33:59 -0300
committerandalenavals2019-03-26 13:33:59 -0300
commit637eccd5e96dc05da05e8251c59b6412463f61f7 (patch)
tree854d8b275b4da020af2f96d90b4f9c23574b235d
downloadaur-python-twopoint-git.tar.gz
no tests avaliable
-rw-r--r--.SRCINFO22
-rwxr-xr-xPKGBUILD48
2 files changed, 70 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..88da67114e5
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+pkgbase = python-twopoint-git
+ pkgdesc = Planning a library for handling files containing 2-point cosmology data
+ pkgver = r86.d4d3159
+ pkgrel = 1
+ url = https://github.com/joezuntz/2point.git
+ arch = any
+ license = GPL
+ checkdepends = make
+ makedepends = git
+ makedepends = python
+ makedepends = python-numpy
+ makedepends = python2
+ makedepends = python2-numpy
+ source = python-twopoint::git+https://github.com/joezuntz/2point.git
+ md5sums = SKIP
+
+pkgname = python-twopoint-git
+ depends = python-numpy
+
+pkgname = python2-twopoint-git
+ depends = python2-numpy
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..301e883be41
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,48 @@
+# Maintainer: Andres Alejandro Navarro Alsina <aanavarroa@unal.edu.co>
+# Contributor: Joe Zuntz
+_pkgname=python-twopoint
+pkgbase=python-twopoint-git
+pkgname=("python-twopoint-git" "python2-twopoint-git")
+pkgver=r86.d4d3159
+pkgrel=1
+pkgdesc=" Planning a library for handling files containing 2-point cosmology data "
+arch=('any')
+url="https://github.com/joezuntz/2point.git"
+license=('GPL')
+checkdepends=('make')
+makedepends=('git' 'python' 'python-numpy' 'python2' 'python2-numpy' )
+source=("${_pkgname}::git+${url}")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${_pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cp -a $_pkgname{,-py2}
+}
+
+build() {
+ cd "$srcdir"/$_pkgname
+ python setup.py build
+
+ cd "$srcdir"/$_pkgname-py2
+ python2 setup.py build
+}
+
+#check() {
+#}
+
+package_python-twopoint-git() {
+ depends=('python-numpy')
+ cd "${_pkgname}"
+ python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
+}
+
+package_python2-twopoint-git() {
+ depends=('python2-numpy')
+ cd "${_pkgname}"
+ python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1
+
+}