APP=sccache
VERSION=0.2.15
BUILD=1sml
HOMEPAGE='https://github.com/mozilla/sccache'
DESC="compile caching tool like ccache which can also cache rust objects"
REQUIRES="rust"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION 
  fixbuilddirpermissions

  cargo build \
    --release \
    --manifest-path Cargo.toml \
    --features native-zlib

  install -Dm 755 target/release/$APP "$PKG/bin/$APP"
  cp LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
82f09b15bcac300c22b4bab8b6d665ef5824af82d3e0fa198395fb7825c31da1eeb7ada1f39b0438efaf5760652f8977e50d1ca8f18770fe714c46f39840e67c  sccache-0.2.15.tar.gz
"
