summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c2149c7594fba324f4a5716586f64b3b5fae9c84 (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
# Maintainer: Ilaï Deutel

pkgname=cargo-lock
pkgver=6.0.0
pkgrel=1
pkgdesc="Cargo subcommand to analyze Cargo.toml packages and translate Cargo.lock files"
url="https://github.com/RustSec/cargo-lock"
depends=('gcc-libs')
makedepends=('cargo')
arch=('x86_64')
license=('MIT' 'APACHE')
source=("https://github.com/RustSec/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
sha256sums=('aadeb034d5d88408eea3d165609519dae0ab2e8aa8499326681e33718299dd79')

build() {
  cd "${pkgname}-${pkgver}"
  cargo build --release --locked --all-features
}

check() {
  cd "${pkgname}-${pkgver}"
  cargo test --release --locked
}

package() {
  cd "${pkgname}-${pkgver}"
  install -Dm755 "target/release/${pkgname}" -t "${pkgdir}/usr/bin"
  install -Dm644 LICENSE-MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
}