summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a7233749238226fac8906877ac767d2dc527f986 (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
# -*- mode: Shell-script; eval: (setq indent-tabs-mode 't); eval: (setq tab-width 4) -*-
# Maintainer: Dominic Meiser [git at msrd0 dot de]

# Package Information
_crate="cargo-duplicates"
pkgname="$_crate"
pkgver=0.3.2
pkgrel=1
pkgdesc='Cargo subcommand for displaying when different versions of a same dependency are pulled in'
license=('MIT')

# Tier 1 architectures supported by Rust (https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-1)
arch=('aarch64' 'i686' 'x86_64')

# Generic Stuff for cargo packages
url="https://crates.io/crates/$_crate"
depends=('gcc-libs' 'curl')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::https://crates.io/api/v1/crates/$_crate/$pkgver/download")
sha512sums=('9c3e9fb817f8734359c79423fd6b56bd8be4c980b854dd5bf58737e1810043543620bdf6bc56109d721ac2b433c00f0e798821f61c0509629d19ff54b7960f57')

build() {
	cd "$srcdir/$pkgname-$pkgver"
	LIBSSH2_SYS_USE_PKG_CONFIG='1' \
	cargo build \
		--locked \
		--release
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	install -Dm755 "target/release/cargo-duplicates" -t "$pkgdir/usr/bin"
}