diff options
author | Shane Stone | 2024-02-13 19:24:30 -0500 |
---|---|---|
committer | Shane Stone | 2024-02-13 19:24:30 -0500 |
commit | f07432ff91fe1d635d08226770c52d70cf79052d (patch) | |
tree | 0029d11b53946f4469f01e9f91bceef6dfd87427 | |
download | aur-neovim-luasnip-opt-git.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..d467d4fc72d5 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = neovim-luasnip-opt-git + pkgdesc = LuaSnip is a snippet-engine written entirely in lua. + pkgver = 1935.bfbd039 + pkgrel = 1 + url = https://github.com/L3MON4D3/luasnip + arch = any + license = Apache + makedepends = git + depends = neovim + source = luasnip::git+https://github.com/L3MON4D3/luasnip.git + sha256sums = SKIP + +pkgname = neovim-luasnip-opt-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a9c44b9ed15f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +pkgname=neovim-luasnip-opt-git +_pkgname=luasnip +pkgver=2076.2dbef19 +pkgrel=1 +pkgdesc='LuaSnip is a snippet-engine written entirely in lua.' +arch=('any') +url="https://github.com/L3MON4D3/${_pkgname}" +license=('Apache') +depends=('neovim') +makedepends=('git') +source=("${_pkgname}::git+${url}.git") +sha256sums=('SKIP') + +pkgver() { + + cd "${srcdir}/${_pkgname}" + + echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)" + +} + +package() { + + cd "${srcdir}/${_pkgname}" + + local _installpath="usr/local/share/nvim/site/pack/${_pkgname}/opt/${_pkgname}/" + + install -dvm755 "${pkgdir}/${_installpath}" + + cp -rt "${pkgdir}/${_installpath}" doc ftplugin lua plugin syntax + +} |