archrelease: copy trunk to community-any
[arch-community.git] / cargo-outdated / trunk / PKGBUILD
blob102e085a6953ef9d378a85bc30b6acf1f862f44c
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>
7 pkgname=cargo-outdated
8 pkgver=0.11.2
9 pkgrel=1
10 pkgdesc="A cargo subcommand for displaying when Rust dependencies are out of date"
11 url="https://github.com/kbknapp/cargo-outdated"
12 arch=('x86_64')
13 license=('MIT')
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')
19 options=('!lto')
21 prepare() {
22   cd "${pkgname}-${pkgver}"
23   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
26 build() {
27   cd "${pkgname}-${pkgver}"
28   export LIBSSH2_SYS_USE_PKG_CONFIG=1
29   cargo build --frozen --release
32 package() {
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}"
38 # vim: ts=2 sw=2 et: