summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 80da90826713124aaff2bcf959128580b8563136 (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
# Maintainer: xpt <user.xpt@gmail.com>
pkgname=python2-pypar-git
pkgver=20181011
pkgrel=1
pkgdesc="A Python library that provides parallelism using the message passing interface to handle big data and highly computational problems"
depends=('python2')
makedepends=('git' 'python2-numpy')
url="https://github.com/daleroberts/pypar"
license=('GPL3')
arch=('any')
source=()

_gitroot="https://github.com/daleroberts/pypar"
_gitname="pypar"
_gitbranch="master"


build()
{
	cd "${srcdir}"

	msg "Connecting to GitHub..."

	if [ -d "${srcdir}/${_gitname}" ]; then
		cd "${_gitname}"
		git pull origin "${_gitbranch}"
		msg "The local files are updated."
	else
		git clone "${_gitroot}"
		cd "${_gitname}"
		git checkout "${_gitbranch}"
	fi

	msg "Git checkout done or server timeout."
}

package()
{
	cd "${srcdir}/${_gitname}"
	python2 setup.py install --root="${pkgdir}" --prefix=/usr --optimize=1 || return 1
}