APP=ccache
VERSION=3.7.9
BUILD=1sml
HOMEPAGE='https://ccache.dev/'
DOWNLOAD='https://github.com/ccache/ccache/releases/download/v3.7.9/ccache-3.7.9.tar.xz'
DESC="Compiler cache to speed up re-compilation of C/C++ code by caching previous compiles"
REQUIRES="musl"

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

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

  LDFLAGS="-static" \
  ./configure \
    --prefix="" 

  make
  make install DESTDIR=$PKG

  cp GPL* $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
0944846a6543947251e500576dd69f0b88d69c9a7535de5be8d6a17505489d8ec658bac8a71b8a8c70f341e3e174968e99ebfaadfd1e64b2e791f4d567b1a0c9  ccache-3.7.9.tar.lz
"
