summaryrefslogtreecommitdiff
path: root/sccache/Pkgfile
blob: fa26e087b621fa052df8444e0adb9d2574eec1c9 (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.13
    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,.crates2.json}
   22 }

Generated by cgit