summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb52708a9cd4a5b014f57da5d95c60fefbf5e5d5 (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
# Maintainer: Ignas Anikevicius <anikevicius at gm@il dot c0m>

pkgname=python-neovim-git
_pkgname=python-neovim-git
pkgver=0.2.6.r5.g3777747
pkgrel=1
pkgdesc="Python client to neovim, git version. Use this to keep up with neovim-git"
arch=('any')
license=('Apache2')
url='http://github.com/neovim/python-client'
depends=('python'
         'python-msgpack'
         'python-greenlet'
         'python-cffi'
         'python-click'
         'python-setuptools'
         )
conflicts=(
  'python-neovim'
)
provides=('python-neovim')
makedepends=('git')
source=("$pkgname::git+https://github.com/neovim/python-client.git"
        "LICENSE::https://raw.githubusercontent.com/neovim/python-client/master/LICENSE")
sha256sums=('SKIP' '297a62ff61eb84f532ff5a8181860d925b710d4458f204e56c90b1da997c8711')

if [ -n "$VIRTUAL_ENV" ]; then
  echo "Warning: You're building within a virtualenv. Use"
  echo "a shell without virtualenv to build this package!"
  exit 1
fi

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

package() {
  cd "$_pkgname"
  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: