1 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
2 # Contributor: Jameson Pugh <imntreal@gmail.com>
3 # Contributor: Mikaela Szekely <qyriad@gmail.com>
8 pkgdesc="A cargo subcommand for checking and applying updates to installed executables"
10 url="https://github.com/nabijaczleweli/cargo-update"
12 depends=('gcc-libs' 'zlib' 'openssl')
14 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"
16 sha256sums=('13d4f7998474761c6baf519c39c51b9a9974e3f690093bab42666e9342118525'
17 '88c37ef712be85ba112d0b537e8e2d3e80b762a630ff27ed31db8f5e8fa20afe')
22 cp "$srcdir/Cargo.lock" .
23 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
28 cargo build --release --frozen
38 install -Dm755 "target/release/cargo-install-update" "$pkgdir/usr/bin/cargo-install-update"
39 install -Dm755 "target/release/cargo-install-update-config" "$pkgdir/usr/bin/cargo-install-update-config"
41 install -Dm644 "man/cargo-install-update.md" "$pkgdir/usr/share/doc/${pkgname}/cargo-install-update.md"
42 install -Dm644 "man/cargo-install-update-config.md" "$pkgdir/usr/share/doc/${pkgname}/cargo-install-update-config.md"
43 install -Dm644 "README.md" "$pkgdir/usr/share/doc/${pkgname}/README.md"
44 install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/${pkgname}/LICENSE"
47 # vim:set ts=2 sw=2 et: