summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ec8656f14cf85d8de36b9b2ceff145222b0012c (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
pkgbase=python-pythran-git
# pkgname=('python-pythran-git' 'python2-pythran-git')
pkgname=('python-pythran-git')
pkgver=r1886.09e36dbb
pkgrel=1
pkgdesc="A claimless python to c++ converter"
arch=('i686' 'x86_64')
url="http://pythonhosted.org/pythran/"
license=('BSD')
makedepends=('python-networkx' 'python2-networkx' 'python-ply' 'python2-ply' 'python-colorlog' 'python2-colorlog' 'python-numpy' 'python2-numpy' 'gperftools'  'python-setuptools' 'python2-setuptools' 'python-gast' 'python2-gast' 'python-six' 'python2-six' 'gmp' 'boost' 'git' 'cmake')
source=("git+https://github.com/serge-sans-paille/pythran.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir"/pythran
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cp -r "$srcdir"/pythran "$srcdir"/pythran-py2

  cd "$srcdir"/pythran
  python setup.py build

  cd "$srcdir"/pythran-py2
  python2 setup.py build
}

package_python-pythran-git() {
  depends=('python-networkx' 'python-ply' 'python-colorlog' 'python-numpy' 'python-gast' 'python-six' 'gperftools' 'gmp' 'boost')
  provides=('python-pythran')
  conflicts=('python-pythran')

  cd "$srcdir"/pythran
  python setup.py install --root=$pkgdir --optimize=1
}

# package_python2-pythran-git() {
#   depends=('python2-networkx' 'python2-ply' 'python2-colorlog' 'python2-numpy' 'python2-gast' 'python2-six' 'gperftools' 'gmp' 'boost')
#   provides=('python2-pythran')
#   conflicts=('python2-pythran')
# 
#   cd "$srcdir"/pythran-py2
#   python2 setup.py install --root=$pkgdir --optimize=1
# }