blob: a6059d4c1c9c661a7324803491bb377b375400b5 (
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.1
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=('80701a0f460babec0721d83646898e906ec00dc86131c10fff900276ffd8ccc7ec81be350338136653af9bd173ec9f6f7427eaf7315e66c18b07bf976c51128d')
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:
|