summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e494426ed0c330c7d9756ea943eb941740f03b72 (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
# Maintainer: Score_Under <seejay.11@gmail.com>
_pkgname=copilot.vim
pkgname=vim-copilot-git
pkgver=1.9.0.r0.g98c2939
pkgrel=1
pkgdesc="(Neo)Vim plugin for GitHub Copilot automated code completion. Requires a subscription."
arch=(any)
url="https://github.com/github/$_pkgname"
license=(custom)
groups=(vim-plugins)
depends=(vim-plugin-runtime nodejs)
makedepends=(git)
provides=("$_pkgname")
conflicts=("${provides[@]}")
source=("git+$url.git")
sha256sums=('SKIP')

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

package() {
  cd "$_pkgname"
  find autoload dist doc lua plugin syntax -type f -exec install -Dm644 '{}' \
    "$pkgdir/usr/share/vim/vimfiles/{}" \;
  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
}