archrelease: copy trunk to community-any
[ArchLinux/community.git] / cargo-depgraph / trunk / PKGBUILD
blob3bbd0c09bdd8cff0d0c688b5daf75d598320278c
1 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
2 # Contributor: Vlad Frolov <frolvlad@gmail.com>
4 pkgname=cargo-depgraph
5 pkgver=1.4.0
6 pkgrel=1
7 pkgdesc="Creates dependency graphs for cargo projects using cargo metadata and graphviz"
8 arch=('x86_64')
9 url="https://sr.ht/~jplatte/cargo-depgraph"
10 license=('GPL3')
11 depends=('gcc-libs')
12 makedepends=('cargo')
13 source=("$pkgname-$pkgver.tar.gz::https://git.sr.ht/~jplatte/$pkgname/archive/v$pkgver.tar.gz")
14 sha256sums=('c138718e610673352b99d7078eda46f6039c3e20d44f85e4312d48d9dce99f77')
16 prepare() {
17   cd "$pkgname-v$pkgver"
18   cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
21 build() {
22   cd "$pkgname-v$pkgver"
23   cargo build --release --frozen
26 check() {
27   cd "$pkgname-v$pkgver"
28   cargo test --frozen
31 package() {
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: