diff options
author | HelloImWar | 2023-01-22 18:06:10 -0500 |
---|---|---|
committer | HelloImWar | 2023-01-22 18:06:10 -0500 |
commit | dfdee6c3bed7da789eb67cd766c4e57d9750cc96 (patch) | |
tree | 44e3fadc11b8a003eef233daccdd4acf754afc1f | |
download | aur-dfdee6c3bed7da789eb67cd766c4e57d9750cc96.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ccb3caa10259 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = neovim-autopairs-git + pkgdesc = autopairs for neovim written by lua + pkgver = r323.g31042a5 + pkgrel = 1 + url = https://github.com/windwp/nvim-autopairs + arch = any + groups = neovim-plugins + license = MIT + makedepends = git + depends = neovim + provides = neovim-autopairs + conflicts = neovim-autopairs + source = neovim-autopairs-git::git+https://github.com/windwp/nvim-autopairs.git + sha256sums = SKIP + +pkgname = neovim-autopairs-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cf75505c2e6f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: HelloImWar <helloimwar at proton dot me> + +pkgname=neovim-autopairs-git +_pkgname="${pkgname%-git}" +pkgver=r323.g31042a5 +pkgrel=1 +pkgdesc="autopairs for neovim written by lua" +arch=('any') +url="https://github.com/windwp/nvim-autopairs" +license=('MIT') +groups=('neovim-plugins') +depends=('neovim') +makedepends=('git') +provides=("$_pkgname") +conflicts=("$_pkgname") +source=("$pkgname::git+$url.git") +sha256sums=('SKIP') + +pkgver() { + cd "$pkgname" + echo r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD) +} + +package() { + cd "$pkgname" + find lua \ + -type f \ + -exec install -Dm644 '{}' "$pkgdir/usr/share/nvim/runtime/pack/dist/start/$pkgname/{}" \; + install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" + install -Dm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" + install -Dm644 doc/nvim-autopairs.txt -t "$pkgdir/usr/share/doc/$pkgname/" + install -Dm644 doc/nvim-autopairs-rules.txt -t "$pkgdir/usr/share/doc/$pkgname/" +} + |