diff options
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 28 | ||||
-rw-r--r-- | gps.install | 8 |
3 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0d0258f0f5e7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = neovim-gps-git + pkgdesc = A simple statusline component that shows context of the current cursor position in file + pkgver = r27.cffae25 + pkgrel = 1 + url = https://github.com/smiteshp/nvim-gps + install = gps.install + arch = any + groups = neovim-plugins + license = unknown + makedepends = git + depends = neovim>=0.5 + depends = neovim-tree-sitter + provides = neovim-gps + conflicts = neovim-gps + source = neovim-gps-git::git+https://github.com/smiteshp/nvim-gps + md5sums = SKIP + +pkgname = neovim-gps-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..2980360d283e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Luis Martinez <luis dot martinez at disroot dot org> + +pkgname=neovim-gps-git +pkgver=r27.cffae25 +pkgrel=1 +pkgdesc="A simple statusline component that shows context of the current cursor position in file" +arch=('any') +url="https://github.com/smiteshp/nvim-gps" +license=('unknown') +groups=('neovim-plugins') +depends=('neovim>=0.5' 'neovim-tree-sitter') +makedepends=('git') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +install=gps.install +source=("$pkgname::git+$url") +md5sums=('SKIP') + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$pkgname" + find lua -type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/nvim/runtime/{}" \; + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" +} diff --git a/gps.install b/gps.install new file mode 100644 index 000000000000..616951341c8f --- /dev/null +++ b/gps.install @@ -0,0 +1,8 @@ +post_install() { + echo ':: Please consult upstream documentation on how to use this plugin.' + echo ':: A copy has been installed under /usr/share/doc/neovim-gps-git/README.md for your reference.' +} + +post_remove() { + echo ":: Remember to remove all references to this plugin from your init scripts." +} |