summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 41e1a756922c006a2cc1f79a216acf4303755339 (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
# Maintainer: Trougnouf (Benoit Brummer) <trougnouf@gmail.com>
# Contributor: Lex Black <autumn-wind@web.de>
# Contributor: Michel Zou

_name=pythran
pkgbase=python-pythran-git
pkgname=('python-pythran-git')
pkgver=0.15.0.r11.g3d9380999
pkgrel=1
pkgdesc="claimless python to c++ converter"
arch=('i686' 'x86_64')
url="https://github.com/serge-sans-paille/pythran"
license=('BSD')
depends=('python-networkx' 'python-ply' 'python-colorlog' 'python-numpy' 'python-gast' 'python-six' 'gperftools' 'gmp' 'boost')
makedepends=('gperftools'  'python-setuptools' 'git' 'cmake')
provides=('python-pythran')
conflicts=('python-pythran')
source=("git+https://github.com/serge-sans-paille/pythran.git")
md5sums=('SKIP')


pkgver() {
  cd "$_name"
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

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

  cd "${_name}"
  python setup.py build
}

package() {
  cd "${_name}"
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}