blob: be14e92629c41332567c4094de4fa93e7128c7d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Maintainer: Jean Lucas <jean@4ray.co>
pkgname=sccache
pkgver=0.2.8
pkgrel=2
pkgdesc='ccache with cloud storage'
arch=(i686 x86_64)
url=https://github.com/mozilla/sccache
license=(Apache)
makedepends=(rust)
conflicts=(sccache-bin sccache-git)
source=($url/archive/$pkgver.tar.gz)
sha512sums=('3469a50339892ca2495f5655a1bd9fcb21a60bd01384c6851789e806902d95d605a941b1a09e0172eef663bddbc7d32fba3afc9ec76bd2a27f32acb1b7b0a35f')
build() {
cd sccache-$pkgver
cargo build --release
}
check() {
cd sccache-$pkgver
cargo test --release || true
}
package() {
cd sccache-$pkgver
cargo install --root "$pkgdir"/usr
rm "$pkgdir"/usr/.crates.toml
install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/sccache
install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/sccache
}
|