summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0829fcfd226b615a0c005152b23aedf53df1d748 (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
# Maintainer: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
# Contributor: Michael Schubert <mschu.dev at gmail>

pkgname=(python-numba-git)
_gitname=numba
pkgver=0.22.1.r574.g77d6a60
pkgrel=1
pkgdesc="A lightweight LLVM python binding for writing JIT compilers"
url="https://github.com/numba/numba"
arch=('i686' 'x86_64')
license=('BSD')
depends=('python' 'python-llvmlite-git' )
makedepends=('git' 'cython')
conflicts=()
replaces=()
backup=()
provides=(python-numba)
source=(${_gitname}::git+https://github.com/numba/numba.git)
md5sums=('SKIP')


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

build() {
  cd "$srcdir/numba"
  python setup.py build
}

package() {
  cd "$srcdir/numba"
  python setup.py install --skip-build --prefix=/usr --root="$pkgdir" --optimize=1
}