1 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
2 # Contributor: Vlad Frolov <frolvlad@gmail.com>
7 pkgdesc="Creates dependency graphs for cargo projects using cargo metadata and graphviz"
9 url="https://sr.ht/~jplatte/cargo-depgraph"
13 source=("$pkgname-$pkgver.tar.gz::https://git.sr.ht/~jplatte/$pkgname/archive/v$pkgver.tar.gz")
14 sha256sums=('c138718e610673352b99d7078eda46f6039c3e20d44f85e4312d48d9dce99f77')
17 cd "$pkgname-v$pkgver"
18 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
22 cd "$pkgname-v$pkgver"
23 cargo build --release --frozen
27 cd "$pkgname-v$pkgver"
32 cd "$pkgname-v$pkgver"
33 install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
34 install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
37 # vim:set ts=2 sw=2 et: