29 lines
776 B
Bash
29 lines
776 B
Bash
# Maintainer: Bert Peters <bert@bertptrs.nl>
|
|
pkgname=cargo-license
|
|
pkgver=0.4.0
|
|
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=('3dab73571e99c9f11feed95ad2eb3e89921166cf34de8b7dd3d87c8d82711250')
|
|
|
|
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
|
|
}
|