blob: 1a2e608ba7c9465387a42ef99c3d865f01a3988a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Vlad Frolov <frolvlad@gmail.com>
pkgname=cargo-deny
pkgver=0.10.3
pkgrel=1
pkgdesc="Cargo plugin for linting your dependencies"
url="https://github.com/EmbarkStudios/cargo-deny"
depends=('gcc-libs')
makedepends=('cargo')
arch=('i686' 'x86_64')
license=('MIT' 'APACHE')
source=(${pkgname}-${pkgver}.tar.gz::https://github.com/EmbarkStudios/cargo-deny/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha512sums=('68033fae9a16753342e222a23f3a3288c9474c0ce404321054dcd661aa15ca1dd59de0dfbc3a65df7ae8d857577a4f11af181393801ffd1a3c8cf5470a2402da')
build() {
cd "cargo-deny-${pkgver}"
cargo build --release --locked
}
check() {
cd "cargo-deny-${pkgver}"
cargo test --release --locked
}
package() {
cd "cargo-deny-${pkgver}"
install -Dm755 \
"target/release/cargo-deny" \
-t "${pkgdir}/usr/bin"
install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
install -Dm644 LICENSE-MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
}
# vim:set ts=2 sw=2 et:
|