1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
2 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
3 # Contributor: Wesley Moore <wes@wezm.net>
8 pkgdesc='A tool to clone git repositories to a standard location organised by domain and path'
10 url='https://github.com/wezm/git-grab'
11 license=('MIT' 'Apache')
12 depends=('git' 'gcc-libs')
15 _commit='ae0fb16048691b9b26f8b28efa95087a9654b62f'
16 source=("$pkgname::git+$url.git#commit=$_commit")
22 git describe --tags | sed 's/^v//'
28 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
34 cargo build --frozen --release --all-features
40 cargo test --frozen --all-features
47 install -vDm755 -t "$pkgdir/usr/bin" target/release/git-grab
50 install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.md
53 install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE*
54 sed -n '/^Licence/,/^at your option./p' \
56 > "$pkgdir/usr/share/licenses/$pkgname/LICENSE"