aur-packages/deoplete-git/PKGBUILD

39 lines
1.0 KiB
Bash
Raw Normal View History

2017-12-24 21:15:39 -08:00
# Maintainer: Trent Palmer trenttdually at gmail
_name='deoplete'
pkgname="${_name}-git"
pkgver=3.0.r91.g5c84f5b
pkgrel=1
pkgdesc="deoplete completion plugin for neovim"
arch=('x86_64')
url="https://github.com/Shougo/deoplete.nvim"
license=('MIT')
groups=()
2017-12-24 22:57:15 -08:00
depends=('python-neovim' 'python2-neovim')
2017-12-24 21:15:39 -08:00
makedepends=('git')
provides=('deoplete-git')
conflicts=('deoplete' 'deoplete-git')
replaces=('deoplete')
backup=()
options=()
install="${_name}.install"
source=("${_name}::${url//https/git}")
noextract=()
md5sums=('SKIP')
pkgver() {
2017-12-25 00:18:05 -08:00
cd "${srcdir}/${_name}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
2017-12-24 21:15:39 -08:00
}
package() {
mkdir -p "$pkgdir/usr/share/nvim/runtime"
2017-12-25 00:18:05 -08:00
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin,rplugin} \
"$pkgdir/usr/share/nvim/runtime"
2017-12-25 00:18:05 -08:00
mkdir -p "$pkgdir/usr/share/doc/${pkgname}"
2017-12-25 11:30:02 -08:00
cp "${srcdir}/${_name}/"README.md \
2017-12-25 00:18:05 -08:00
"$pkgdir/usr/share/doc/${pkgname}"
2017-12-25 11:30:02 -08:00
mkdir -p "$pkgdir/usr/share/licenses/${pkgname}"
cp "${srcdir}/${_name}/"LICENSE \
"$pkgdir/usr/share/licenses/${pkgname}"
2017-12-24 21:15:39 -08:00
}