diff options
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 64 |
3 files changed, 70 insertions, 28 deletions
@@ -1,15 +1,33 @@ pkgbase = vim-nord-git - pkgdesc = A arctic, north-bluish clean and elegant Vim theme. - pkgver = r51.05d536f - pkgrel = 1 + pkgdesc = An arctic, north-bluish clean and elegant Vim theme. + pkgver = 0.7.0.r94.gea7ff9c + pkgrel = 2 url = https://github.com/arcticicestudio/nord-vim arch = any groups = vim-plugins - license = Apache + license = MIT makedepends = git - depends = vim - source = vim-nord-git::git+https://github.com/arcticicestudio/nord-vim.git + source = vim-nord-git::git+https://github.com/arcticicestudio/nord-vim md5sums = SKIP pkgname = vim-nord-git + depends = vim-plugin-runtime + optdepends = vim-airline-nord: Airline theme + optdepends = vim-lightline-nord: Lightline theme + provides = vim-nord + conflicts = vim-nord + +pkgname = vim-airline-nord-git + depends = vim-airline + depends = vim-plugin-runtime + optdepends = vim-nord: Base vim theme + provides = vim-airline-nord + conflicts = vim-airline-nord + +pkgname = vim-lightline-nord-git + depends = vim-lightline-git + depends = vim-plugin-runtime + optdepends = vim-nord: Base vim theme + provides = vim-lightline-nord + conflicts = vim-lightline-nord diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..73de0d900192 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +!PKGBUILD +!.SRCINFO +!.gitignore +* @@ -1,33 +1,53 @@ -# Maintainer: reedts <j.reedts at gmail dot com> -pkgname=vim-nord-git -pkgver=r51.05d536f -pkgrel=1 -epoch= -pkgdesc="A arctic, north-bluish clean and elegant Vim theme." +# Maintainer: Luis Martinez <luis dot martinez at tuta dot io> +# Contributor: reedts <j.reedts at gmail dot com> +pkgbase=vim-nord-git +pkgname=('vim-nord-git' 'vim-airline-nord-git' 'vim-lightline-nord-git') +pkgver=0.7.0.r94.gea7ff9c +pkgrel=2 +pkgdesc="An arctic, north-bluish clean and elegant Vim theme." arch=('any') url="https://github.com/arcticicestudio/nord-vim" -license=('Apache') +license=('MIT') groups=('vim-plugins') -depends=('vim') makedepends=('git') -optdepends=() -checkdepends=() -conflicts=() -replaces=() -backup=() -options=() -changelog= -source=("$pkgname::git+https://github.com/arcticicestudio/nord-vim.git") -noextract=() +source=("$pkgbase::git+$url") md5sums=('SKIP') pkgver() { - cd "$srcdir/$pkgname" - printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" + cd "$pkgbase" + git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./' } -package() { - cd "$srcdir/$pkgname" - install -Dm644 colors/nord.vim $pkgdir/usr/share/vim/vimfiles/colors/nord.vim +package_vim-nord-git() { + depends=('vim-plugin-runtime') + optdepends=('vim-airline-nord: Airline theme' + 'vim-lightline-nord: Lightline theme') + provides=("${pkgname%-git}") + conflicts=("${pkgname%-git}") + + cd "$pkgbase" + install -Dm644 colors/nord.vim -t "$pkgdir/usr/share/vim/vimfiles/colors/" + install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/" +} + +package_vim-airline-nord-git() { + depends=('vim-airline' 'vim-plugin-runtime') + optdepends=("${pkgbase%-git}: Base vim theme") + provides=("${pkgname%-git}") + conflicts=("${pkgname%-git}") + + cd "$pkgbase" + install -Dm 644 autoload/airline/themes/nord.vim -t "$pkgdir/usr/share/vim/vimfiles/autoload/airline/themes/" + install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/" } +package_vim-lightline-nord-git() { + depends=('vim-lightline-git' 'vim-plugin-runtime') + optdepends=("${pkgbase%-git}: Base vim theme") + provides=("${pkgname%-git}") + conflicts=("${pkgname%-git}") + + cd "$pkgbase" + install -Dm 644 autoload/lightline/colorscheme/nord.vim -t "$pkgdir/usr/share/vim/vimfiles/autoload/lightline/colorscheme/" + install -Dm 644 LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/" +} |