1 # Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
2 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
3 # Contributor: Jian Zeng <anonymousknight96+aur AT gmail.com>
4 # Contributor: Alexandre Bury <alexandre.bury+aur AT gmail.com>
5 # Contributor: Vlad M. <vlad@archlinux.net>
10 pkgdesc="A cargo subcommand for displaying when Rust dependencies are out of date"
11 url="https://github.com/kbknapp/cargo-outdated"
14 depends=('cargo' 'libgit2')
15 makedepends=('libssh2')
16 source=("${pkgname}-${pkgver}.tar.gz::https://crates.io/api/v1/crates/${pkgname}/${pkgver}/download")
17 sha256sums=('c85f2e3018a0a12ca969bcf7022e76347655100cf4e410bfd84f8b129e88802b')
18 b2sums=('2ac2b9fd7723461e7f960f1ab54a467ef393fbd164f42894bd24003c17247b3a9ec8ec336830671104ad422c918bd2387b82a0788796c0b59f38c59b9ca99735')
22 cd "${pkgname}-${pkgver}"
23 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
27 cd "${pkgname}-${pkgver}"
28 export LIBSSH2_SYS_USE_PKG_CONFIG=1
29 cargo build --frozen --release
33 cd "${pkgname}-${pkgver}"
34 install -Dm755 "target/release/${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
35 install -Dm644 LICENSE-MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"