blob: 9091011304902871dac1bef2c9dec7ccfe18a52d (
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
|
# Maintainer: DanielNak <daniel@tee.cat>
_prgname=vim-razer
pkgname=neo${_prgname}-git
pkgver=v1.2.r11.gb19bdc1
pkgrel=3
pkgdesc="Makes RGB Razer keyboards change key colors to complement what you do in neovim."
arch=('any')
url='https://github.com/DanManN/vim-razer'
license=('GNU GPLv3')
depends=('neovim' 'python-neovim' 'python-openrazer')
makedepends=('git')
optdepends=('polychromatic')
conflicts=('neovim-razer')
provides=('neovim-razer')
groups=('neovim-plugins')
source=("git+https://github.com/DanManN/${_prgname}.git")
md5sums=('SKIP')
pkgver() {
cd "${_prgname}"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
package() {
cd "${_prgname}"
_installpath="${pkgdir}/usr/share/nvim/runtime"
mkdir -p "${_installpath}"
cp -r doc plugin "${_installpath}"
install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|