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
|
|
|
|
2018-06-07 14:59:05 -07:00
|
|
|
###########################################################################################################
|
|
|
|
# Build Options
|
|
|
|
###########################################################################################################
|
|
|
|
_vim="y"
|
|
|
|
|
|
|
|
# if you have a newer version of neovim you may not need or want to set _neovim="y"
|
|
|
|
_neovim="n"
|
|
|
|
###########################################################################################################
|
|
|
|
|
2017-12-25 17:30:56 -08:00
|
|
|
_name='vim-lightline'
|
|
|
|
pkgname="${_name}-git"
|
2022-05-15 14:33:43 -07:00
|
|
|
pkgver=r677.b02ef0d
|
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')
|
2018-01-02 01:09:32 -08:00
|
|
|
provides=('vim-lightline')
|
2017-12-25 17:30:56 -08:00
|
|
|
conflicts=('vim-lightline' 'vim-lightline-git')
|
2018-01-02 01:09:32 -08:00
|
|
|
replaces=('')
|
2017-12-25 17:30:56 -08:00
|
|
|
install='lightline.install'
|
2022-03-18 07:02:58 -07:00
|
|
|
source=("${_name}::git+${url}")
|
2017-12-25 14:01:15 -08:00
|
|
|
md5sums=('SKIP')
|
|
|
|
|
2017-12-25 17:30:56 -08:00
|
|
|
pkgver() {
|
|
|
|
cd "${srcdir}/${_name}"
|
2022-03-18 07:02:58 -07:00
|
|
|
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
|
2017-12-25 14:01:15 -08:00
|
|
|
}
|
|
|
|
|
2017-12-25 17:30:56 -08:00
|
|
|
package() {
|
2018-06-07 14:59:05 -07:00
|
|
|
if [ "$_neovim" = "y" ]; then
|
2017-12-25 17:30:56 -08:00
|
|
|
mkdir -p "$pkgdir/usr/share/nvim/runtime"
|
|
|
|
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin} \
|
|
|
|
"$pkgdir/usr/share/nvim/runtime"
|
2018-06-07 14:59:05 -07:00
|
|
|
fi
|
2017-12-25 17:30:56 -08:00
|
|
|
|
2018-06-07 14:59:05 -07:00
|
|
|
if [ "$_vim" = "y" ]; then
|
2017-12-25 17:30:56 -08:00
|
|
|
mkdir -p "$pkgdir/usr/share/vim/vimfiles"
|
|
|
|
cp -r "${srcdir}/${_name}/"{autoload,doc,plugin} \
|
|
|
|
"$pkgdir/usr/share/vim/vimfiles"
|
2018-06-07 14:59:05 -07:00
|
|
|
fi
|
2017-12-25 14:01:15 -08:00
|
|
|
|
2017-12-27 22:48:44 -08:00
|
|
|
install -D -m644 "${srcdir}/${_name}/README.md" $pkgdir/usr/share/doc/$pkgname/README.md
|
|
|
|
install -D -m644 "${srcdir}/${_name}/LICENSE" $pkgdir/usr/share/licenses/$pkgname/LICENSE
|
2017-12-25 17:30:56 -08:00
|
|
|
}
|