# Maintainer: Bert Peters pkgname=cargo-license pkgver=0.4.1 pkgrel=1 pkgdesc="Cargo subcommand to see license of dependencies" arch=(x86_64) url="https://github.com/onur/cargo-license" license=('MIT') depends=(gcc-libs) makedepends=(cargo) source=("$pkgname-$pkgver.tar.gz::https://github.com/onur/cargo-license/archive/v$pkgver.tar.gz") sha256sums=('5461fa97078ae9d508d3de1393f9b6eb13c77be4cafd56bde9da03137a5c7fe4') build() { cd "$pkgname-$pkgver" cargo build --release } check() { cd "$pkgname-$pkgver" # Test in release mode to avoid recompiling everything cargo test --release } package() { cd "$pkgname-$pkgver" install -D -t "$pkgdir/usr/bin" target/release/cargo-license install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE }