2017-12-25 14:01:15 -08:00
|
|
|
# $Id$
|
2017-12-25 17:30:56 -08:00
|
|
|
# Maintainer: trent palmer <trenttdually at g mail>
|
|
|
|
# Contributor: jeff tracy <jefftracy nine one one at aol dot com>
|
|
|
|
# Forked from https://aur.archlinux.org/vim-lightline-git.git
|
|
|
|
# at commit 95ac7c5e2434144e5a40e4b71432bf9d61203cac
|
2017-12-25 14:01:15 -08:00
|
|
|
|
2017-12-25 17:30:56 -08:00
|
|
|
_name='vim-lightline'
|
|
|
|
pkgname="${_name}-git"
|
|
|
|
pkgver=
|
2017-12-25 14:01:15 -08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc='A light and configurable statusline/tabline for Vim'
|
|
|
|
arch=('any')
|
|
|
|
url='https://github.com/itchyny/lightline.vim'
|
|
|
|
license=('MIT')
|
2017-12-25 17:30:56 -08:00
|
|
|
depends=('vim-runtime' 'neovim')
|
2017-12-25 14:01:15 -08:00
|
|
|
makedepends=('git')
|
2017-12-25 17:30:56 -08:00
|
|
|
provides=('vim-lightline-git')
|
|
|
|
conflicts=('vim-lightline' 'vim-lightline-git')
|
|
|
|
replaces=('vim-lightline')
|
|
|
|
install='lightline.install'
|
|
|
|
# source=("git://github.com/itchyny/lightline.vim.git")
|
|
|
|
source=("${_name}::${url//https/git}")
|
2017-12-25 14:01:15 -08:00
|
|
|
md5sums=('SKIP')
|
|
|
|
|
2017-12-25 17:30:56 -08:00
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${_name}"
|
|
|
|
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
2017-12-25 14:01:15 -08:00
|
|
|
}
|
|
|
|
|
2017-12-25 17:30:56 -08:00
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir/usr/share/nvim/runtime"
|
|
|
|
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin} \
|
|
|
|
"$pkgdir/usr/share/nvim/runtime"
|
|
|
|
|
|
|
|
mkdir -p "$pkgdir/usr/share/vim/vimfiles"
|
|
|
|
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin} \
|
|
|
|
"$pkgdir/usr/share/vim/vimfiles"
|
2017-12-25 14:01:15 -08:00
|
|
|
|
2017-12-25 17:30:56 -08:00
|
|
|
mkdir -p "$pkgdir/usr/share/doc/${pkgname}"
|
|
|
|
cp "${srcdir}/${_name}/"README.md \
|
|
|
|
"$pkgdir/usr/share/doc/${pkgname}"
|
|
|
|
|
|
|
|
mkdir -p "$pkgdir/usr/share/licenses/${pkgname}"
|
|
|
|
cp "${srcdir}/${_name}/"LICENSE \
|
|
|
|
"$pkgdir/usr/share/licenses/${pkgname}"
|
|
|
|
}
|