summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 301e883be4130213aed6c93ef590ab32aafca261 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
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

}