sccache: initial import

This commit is contained in:
Danny Rawlins 2018-12-26 21:18:12 +11:00
parent 191e121efa
commit 4c9d6a1dc2
3 changed files with 31 additions and 0 deletions

3
sccache/.footprint Normal file
View File

@ -0,0 +1,3 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/sccache

5
sccache/.signature Normal file
View File

@ -0,0 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
RWSagIOpLGJF3w6w7mfvZ1Z/0N67T6ybNVOVwmB29MhzkeCxIcVDHsTcSBBVN6yuzgq3VD7V7VYBznoW5+oss1Pkvqf4sQ/3mAc=
SHA256 (Pkgfile) = 48cb0796b1cb3ec1c587982004491d92fc5ffbc2dc5dfef8520c585745fc5185
SHA256 (.footprint) = faf777b374273121eaa06a3f627d66169ce6db1948d7cd60994b641e88e88f09
SHA256 (sccache-0.2.7.tar.gz) = 0f7e3ad60a93759a35623aa954633c94154fd00d17fe29f9413933e1c5545a52

23
sccache/Pkgfile Normal file
View File

@ -0,0 +1,23 @@
# Description: Sccache is a ccache-like tool
# URL: https://github.com/mozilla/sccache
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: rust
name=sccache
version=0.2.7
release=1
source=(https://github.com/mozilla/sccache/archive/$version/$name-$version.tar.gz)
build() {
cd $name-$version
if [ -n "$(pkginfo -i | grep '^sccache ')" ]; then
export RUSTC_WRAPPER=/usr/bin/sccache
fi
export CARGO_HOME="$PKGMK_SOURCE_DIR"
cargo build --release
cargo install --root $PKG/usr
rm $PKG/usr/.crates.toml
}