ports/contrib (3.4): sccache: initial import
commit 4c9d6a1dc271cf9ec1a52d76ae039140c3242b45 Author: Danny Rawlins <monster.romster@gmail.com> Date: Wed Dec 26 21:18:12 2018 +1100 sccache: initial import diff --git a/sccache/.footprint b/sccache/.footprint new file mode 100644 index 00000000..33a79ba1 --- /dev/null +++ b/sccache/.footprint @@ -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 diff --git a/sccache/.signature b/sccache/.signature new file mode 100644 index 00000000..bcbc775a --- /dev/null +++ b/sccache/.signature @@ -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 diff --git a/sccache/Pkgfile b/sccache/Pkgfile new file mode 100644 index 00000000..283f06dd --- /dev/null +++ b/sccache/Pkgfile @@ -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 +}
participants (1)
-
crux@crux.nu