# Maintainer: Rhinoceros # Contributor: Mizuchi pkgname=vim-startify-git pkgver=1.0.r1.ga58f92e pkgrel=1 epoch=1 pkgdesc='A fancy start screen for Vim.' arch=('any') url='https://github.com/mhinz/vim-startify' license=('MIT') depends=('vim') makedepends=('git') conflicts=('vim-startify') provides=('vim-startify') groups=('vim-plugins') install='vimdoc.install' source=("git+https://github.com/mhinz/${pkgname%-git}.git") sha256sums=('SKIP') pkgver() { cd "$pkgname" # cutting off 'v' prefix from the git tag git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } package() { cd ${pkgname%-git} _installpath="${pkgdir}/usr/share/vim/vimfiles" install -d "${_installpath}/"{autoload,doc,plugin,syntax} install -m644 autoload/startify.vim "${_installpath}/autoload/" install -m644 doc/startify.txt "${_installpath}/doc/" install -m644 plugin/startify.vim "${_installpath}/plugin/" install -m644 syntax/startify.vim "${_installpath}/syntax/" install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }