zsh-syntax-highlighting: add .plugin.zsh

And use install target instead of manually copying files.

Closes: #28740 [via git-merge-pr]
This commit is contained in:
gavin 2021-02-13 18:28:49 -08:00 committed by Érico Rolim
parent 8ca33a4285
commit da39b6e17e
1 changed files with 3 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'zsh-syntax-highlighting'
pkgname=zsh-syntax-highlighting
version=0.7.1
revision=2
revision=3
depends="zsh"
short_desc="Fish shell like syntax highlighting for Zsh"
maintainer="Orphaned <orphan@voidlinux.org>"
@ -12,9 +12,7 @@ distfiles="${homepage}/archive/${version}.tar.gz>${pkgname}-${version}.tar.gz"
checksum=f5044266ee198468b1bcec881a56e6399e209657d6ed9fa6d21175bc76afdefa
do_install() {
vinstall ${pkgname}.zsh 644 usr/share/zsh/plugins/${pkgname}
vinstall .version 644 usr/share/zsh/plugins/${pkgname}
vinstall .revision-hash 644 usr/share/zsh/plugins/${pkgname}
vcopy highlighters usr/share/zsh/plugins/${pkgname}
make install SHARE_DIR=${DESTDIR}/usr/share/zsh/plugins/${pkgname} DOC_DIR=${DESTDIR}/usr/share/zsh/plugins/${pkgname}/doc
vinstall ${pkgname}.plugin.zsh 644 usr/share/zsh/plugins/${pkgname}
vlicense COPYING.md
}