2023-05-01 16:38:29 -07:00
|
|
|
# Maintainer: Alexander Rosenberg <zanderpkg at pm dot me>
|
|
|
|
|
|
|
|
pkgname='license-tool'
|
2023-05-01 17:34:00 -07:00
|
|
|
pkgver=6
|
2023-05-01 16:38:29 -07:00
|
|
|
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"
|
2023-05-01 17:34:00 -07:00
|
|
|
install -Dt "$pkgdir/usr/share/zsh/site-functions" "$pkgname/_license-tool"
|
2023-05-01 16:38:29 -07:00
|
|
|
mkdir -p "$pkgdir/usr/share/"
|
|
|
|
cp -r "$pkgname/licenses" "$pkgdir/usr/share/license-tool"
|
|
|
|
}
|