mirror of
https://github.com/TrentSPalmer/aur-packages.git
synced 2024-11-21 11:01:29 -08:00
54 lines
1.5 KiB
Bash
54 lines
1.5 KiB
Bash
# Maintainer: Trent Palmer trenttdually at gmail
|
|
|
|
###########################################################################################################
|
|
# Build Options
|
|
###########################################################################################################
|
|
_vim="y"
|
|
|
|
_neovim="n"
|
|
###########################################################################################################
|
|
|
|
_name='vim-closetag'
|
|
pkgname="${_name}-git"
|
|
pkgver=r48.9f13011
|
|
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
|
|
}
|