diff options
author | Rhinoceros | 2016-02-02 20:45:26 +1100 |
---|---|---|
committer | Rhinoceros | 2016-02-02 20:45:26 +1100 |
commit | 1a49550c921e315635dcf0e7cf1838748ef92521 (patch) | |
tree | 9997fb6afd85018ee86e7d00f90177ba41b0b701 /PKGBUILD | |
download | aur-1a49550c921e315635dcf0e7cf1838748ef92521.tar.gz |
Initial commit of git version
* These themes used to be bundled with vim-airline(-git), but are now in a
seperate repository.
* PKGBUILD based on vim-startify-git, which was based on vim-startify
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..8f1e30b99a77 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Rhinoceros <https://aur.archlinux.org/account/rhinoceros> + +pkgname=vim-airline-themes-git +pkgver=r1146.5a6453c +pkgrel=1 +pkgdesc='A collection of themes for vim-airline.' +arch=('any') +url='https://github.com/vim-airline/vim-airline-themes' +license=('MIT') +depends=('vim' 'vim-airline') +makedepends=('git') +conflicts=('vim-airline-themes') +provides=('vim-airline-themes') +groups=('vim-plugins') +source=("git+https://github.com/vim-airline/${pkgname%-git}.git") +sha256sums=('SKIP') + +pkgver() { + cd ${pkgname%-git} + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +prepare() { + # This fallback theme is already provided by vim-airline-git + rm ${pkgname%-git}/autoload/airline/themes/dark.vim +} + +package() { + cd ${pkgname%-git} + _installpath="${pkgdir}/usr/share/vim/vimfiles" + mkdir -p "${_installpath}" + cp -r autoload plugin "${_installpath}" + install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} |