diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..373b4526a8a4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Andrea Scarpino <andrea@archlinux.org> + +pkgname=cargo-tree +pkgver=0.7.0 +pkgrel=1 +pkgdesc="A cargo subcommand that visualizes a crate's dependency graph in a tree-like format" +url='https://github.com/skackler/cargo-tree' +depends=('curl' 'http-parser') +makedepends=('cargo' 'cmake') +arch=('i686' 'x86_64') +license=('MIT' 'APACHE') +source=("$pkgname-$pkgver.tar.gz::https://github.com/sfackler/cargo-tree/archive/v$pkgver.tar.gz") +md5sums=('121e989dcd2b6829943252541ce9c3b6') + +build() { + cd "$pkgname-$pkgver" + cargo build --release +} + +package() { + cd "$pkgname-$pkgver" + install -Dm755 "target/release/${pkgname}" "$pkgdir/usr/bin/${pkgname}" + + install -Dm644 LICENSE-MIT "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +} |