blob: 56831f88a472ce67fefb7e170972adbd8e37426a (
plain)
1 # Description: Sccache is a ccache-like tool
2 # URL: https://github.com/mozilla/sccache
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: rust
5
6 name=sccache
7 version=0.2.9
8 release=1
9 source=(https://github.com/mozilla/sccache/archive/$version/$name-$version.tar.gz)
10
11 build() {
12 cd $name-$version
13
14 prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
15 mkdir "$PKGMK_SOURCE_DIR/rust" || true
16 export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
17
18 cargo fetch
19 cargo build --release
20 cargo install --path . --root $PKG/usr
21 rm $PKG/usr/.crates.toml
22 }
|