diff options
author | Luis Martinez | 2021-07-01 16:14:54 -0500 |
---|---|---|
committer | Luis Martinez | 2021-07-01 16:17:46 -0500 |
commit | 8edc94fa8b81cc4abb62f2d4c5782f35394ba1f1 (patch) | |
tree | 23ceb091b61b50c06cc7d50922336ef06e151620 | |
download | aur-8edc94fa8b81cc4abb62f2d4c5782f35394ba1f1.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 23 | ||||
-rw-r--r-- | PKGBUILD | 32 | ||||
-rw-r--r-- | neovim-tokyonight-git.install | 9 |
3 files changed, 64 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..eacf45517734 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,23 @@ +pkgbase = neovim-tokyonight-git + pkgdesc = Dark and light theme ported from VSCode's TokyoNight + pkgver = r102.0ead86a + pkgrel = 1 + url = https://github.com/folke/tokyonight.nvim + install = neovim-tokyonight-git.install + arch = any + groups = neovim-plugins + license = MIT + makedepends = git + depends = neovim + provides = neovim-tokyonight + provides = neovim-airline-tokyonight + provides = neovim-lightline-tokyonight + provides = neovim-lualine-tokyonight + conflicts = neovim-tokyonight + conflicts = neovim-airline-tokyonight + conflicts = neovim-lightline-tokyonight + conflicts = neovim-lualine-tokyonight + source = neovim-tokyonight-git::git+https://github.com/folke/tokyonight.nvim + sha256sums = SKIP + +pkgname = neovim-tokyonight-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..632e48daff09 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Luis Martinez <luis dot martinez at tuta dot io> + +pkgname=neovim-tokyonight-git +pkgver=r102.0ead86a +pkgrel=1 +pkgdesc="Dark and light theme ported from VSCode's TokyoNight" +arch=('any') +url="https://github.com/folke/tokyonight.nvim" +license=('MIT') +groups=('neovim-plugins') +depends=('neovim') +makedepends=('git') +provides=("${pkgname%-git}" 'neovim-airline-tokyonight' 'neovim-lightline-tokyonight' 'neovim-lualine-tokyonight') +conflicts=("${pkgname%-git}" 'neovim-airline-tokyonight' 'neovim-lightline-tokyonight' 'neovim-lualine-tokyonight') +install="$pkgname.install" +source=("$pkgname::git+$url") +sha256sums=('SKIP') + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + cd "$pkgname" + find autoload colors doc lua ! \( -name 'tags' -prune \) \ + -type f -exec install -Dm 644 '{}' "$pkgdir/usr/share/nvim/runtime/{}" \; + find extras \ + -type f -exec install -Dm 644 '{}' -t "$pkgdir/usr/share/$pkgname/" \; + install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" + install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname/" +} diff --git a/neovim-tokyonight-git.install b/neovim-tokyonight-git.install new file mode 100644 index 000000000000..ef8cc6af5b29 --- /dev/null +++ b/neovim-tokyonight-git.install @@ -0,0 +1,9 @@ +post_install() { + echo ':: This plugin requires manual activation.' + echo ':: Please consult upstream documentation for instructions.' + echo ':: A copy has been installed under /usr/share/neovim-tokyonight-git/README.md for your reference.' +} + +post_remove() { + echo ":: Remember to remove all references to this plugin from your init scripts." +} |