summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3f18bf0cce566006581844da2d24f19ed1154176 (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
# Maintainer: willemw <willemw12@gmail.com>

pkgname=python-spyder-kernels-git
pkgver=1.8.1.r1.gb713289
pkgrel=1
pkgdesc="Jupyter Kernels for the Spyder console"
arch=('any')
url="https://github.com/spyder-ide/spyder-kernels"
license=('MIT')
depends=('python-cloudpickle' 'python-ipykernel')
makedepends=('git')
provides=(${pkgname%-git})
conflicts=(${pkgname%-git})
source=($pkgname::git+$url.git)
md5sums=('SKIP')

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

build() {
  cd $pkgname
  python setup.py build
}

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