add vim-closetag-git

This commit is contained in:
Trent Palmer 2018-10-03 05:00:29 -07:00
parent 0612ddd2cd
commit ce2ee823c1
2 changed files with 70 additions and 0 deletions

17
vim-closetag-git/.SRCINFO Normal file
View File

@ -0,0 +1,17 @@
pkgbase = vim-closetag-git
pkgdesc = Auto close (X)HTML tags
pkgver = r44.8c71d52
pkgrel = 1
url = https://github.com/alvan/vim-closetag
arch = any
license = unknown
makedepends = git
optdepends = vim
optdepends = neovim
provides = vim-closetag
conflicts = vim-closetag
source = git+https://github.com/alvan/vim-closetag
md5sums = SKIP
pkgname = vim-closetag-git

53
vim-closetag-git/PKGBUILD Normal file
View File

@ -0,0 +1,53 @@
# Maintainer: Trent Palmer trenttdually at gmail
###########################################################################################################
# Build Options
###########################################################################################################
_vim="y"
_neovim="n"
###########################################################################################################
_name='vim-closetag'
pkgname="${_name}-git"
pkgver=r44.8c71d52
pkgrel=1
pkgdesc="Auto close (X)HTML tags"
arch=('any')
url="https://github.com/alvan/vim-closetag"
license=('unknown')
groups=()
depends=()
optdepends=('vim' 'neovim')
makedepends=('git')
provides=('vim-closetag')
conflicts=('vim-closetag')
replaces=()
backup=()
options=()
source=('git+https://github.com/alvan/vim-closetag')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/${_name}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
if [ "$_neovim" = "y" ]; then
mkdir -p "$pkgdir/usr/share/nvim/runtime"
cp -r "${srcdir}/${_name}/plugin" \
"$pkgdir/usr/share/nvim/runtime"
fi
if [ "$_vim" = "y" ]; then
mkdir -p "$pkgdir/usr/share/vim/vimfiles"
cp -r "${srcdir}/${_name}/plugin" \
"$pkgdir/usr/share/vim/vimfiles"
fi
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
}