# Maintainer: Alexander Rosenberg pkgname='license-tool' pkgver=7 pkgrel=1 pkgdesc='A simple tool for creating LICENSE files' url='https://git.zander.im/Zander671/license-tool' arch=('x86_64') license=('GPL3') depends=('rust') source=('git+https://git.zander.im/Zander671/license-tool.git') sha256sums=('SKIP') pkgver(){ cd "$pkgname" git rev-list --count HEAD } build() { cd "$pkgname" export GLOBAL_DATA_PATH='/usr/share/license-tool/' cargo build --release } package() { install -Dt "$pkgdir/usr/bin/" "$pkgname/target/release/license-tool" install -m 0644 -Dt "$pkgdir/usr/share/zsh/site-functions" "$pkgname/_license-tool" mkdir -p "$pkgdir/usr/share/" cp -r "$pkgname/licenses" "$pkgdir/usr/share/license-tool" }