diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6cbf70d41108 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: David Vogt <dave at winged dot ch> +# This PKGBUILD is maintained at https://github.com/winged/aur-packages + +pkgname=python-neovim-git +_pkgname=python-neovim-git +pkgver=0.1.0.r0.g354d6f7 +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://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: |