Added zsh completion support for license-tool

This commit is contained in:
Alexander Rosenberg 2023-05-01 17:34:00 -07:00
parent 0a10d7d620
commit b4924966e5
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -1,7 +1,7 @@
# Maintainer: Alexander Rosenberg <zanderpkg at pm dot me> # Maintainer: Alexander Rosenberg <zanderpkg at pm dot me>
pkgname='license-tool' pkgname='license-tool'
pkgver=5 pkgver=6
pkgrel=1 pkgrel=1
pkgdesc='A simple tool for creating LICENSE files' pkgdesc='A simple tool for creating LICENSE files'
url='https://git.zander.im/Zander671/license-tool' url='https://git.zander.im/Zander671/license-tool'
@ -24,6 +24,7 @@ build() {
package() { package() {
install -Dt "$pkgdir/usr/bin/" "$pkgname/target/release/license-tool" install -Dt "$pkgdir/usr/bin/" "$pkgname/target/release/license-tool"
install -Dt "$pkgdir/usr/share/zsh/site-functions" "$pkgname/_license-tool"
mkdir -p "$pkgdir/usr/share/" mkdir -p "$pkgdir/usr/share/"
cp -r "$pkgname/licenses" "$pkgdir/usr/share/license-tool" cp -r "$pkgname/licenses" "$pkgdir/usr/share/license-tool"
} }