1 # Maintainer: Orhun Parmaksız <orhun@archlinux.org>
6 pkgdesc="Manage workspace-hack packages to speed up builds in large workspaces"
8 url="https://github.com/facebookincubator/cargo-guppy"
9 license=('MIT' 'Apache')
12 source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgname-$pkgver.tar.gz")
13 sha512sums=('83fd807c65554fa2ad17ebea05286bb97951c370bdf1301ae993e6c6d48930e24ba0ce392940caa14782d4a464126a57afadcd9ddfaf8a2917c95e8c81e6941c')
16 mv "cargo-guppy-$pkgname-$pkgver" "$pkgname-$pkgver"
17 cd "$pkgname-$pkgver/tools/$pkgname"
18 cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
22 cd "$pkgname-$pkgver/tools/$pkgname"
23 CFLAGS+=" -ffat-lto-objects"
24 cargo build --release --frozen
28 cd "$pkgname-$pkgver/tools/$pkgname"
34 install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin"
35 install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
36 install -Dm 644 LICENSE-MIT -t "$pkgdir/usr/share/licenses/$pkgname"