upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / cargo-tree / trunk / PKGBUILD
blobf583150f7d6284942fa63c110c3e40a5fb39e37f
1 # Maintainer: kpcyrd <git@rxv.cc>
2 # Contributor: Vlad M. <vlad@archlinux.net>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
5 pkgname=cargo-tree
6 pkgver=0.29.0
7 pkgrel=1
8 pkgdesc="Cargo subcommand that visualizes a crate's dependency graph in a tree-like format"
9 url="https://github.com/sfackler/cargo-tree"
10 depends=('curl')
11 makedepends=('cargo')
12 arch=('x86_64')
13 license=('MIT' 'APACHE')
14 source=("https://github.com/sfackler/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
15 sha256sums=('43ca97189f5ce5e527eefaa25219ac18d42f46270fd376a9c7b7b33aa0db634f')
17 build() {
18   cd "${pkgname}-${pkgver}"
19   cargo build --release --locked
22 # upstream doesn't have tests
24 package() {
25   cd "${pkgname}-${pkgver}"
26   install -Dm755 "target/release/${pkgname}" -t "${pkgdir}/usr/bin"
27   install -Dm644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
28   install -Dm644 LICENSE-MIT -t "${pkgdir}/usr/share/licenses/${pkgname}"
31 # vim:set ts=2 sw=2 et: