blob: f2e6bf3ff0a6908bc2bba06e4d4fd6561abc5754 (
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
46
47
48
|
# Maintainer: David Vogt <dave at winged dot ch>
# This PKGBUILD is maintained at https://github.com/winged/aur-packages
pkgname=python2-neovim-git
_pkgname=python2-neovim-git
pkgver=0.r262.605897b
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=('python2'
'python2-msgpack'
'python2-greenlet'
'python2-trollius'
'python2-futures'
'python2-cffi'
'python2-click'
'python2-setuptools'
)
conflicts=(
'python2-neovim'
)
provides=('python2-neovim')
makedepends=('git')
source=("$pkgname::git://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}"
printf "0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "$_pkgname"
python2 setup.py install --root="$pkgdir" --optimize=1
mv "$pkgdir/usr/bin/pynvim" "$pkgdir/usr/bin/pynvim2"
install -Dm644 ../LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
# vim:set ts=2 sw=2 et:
|