APP=brotli
VERSION=1.0.7
BUILD=1sml
HOMEPAGE="https://github.com/google/brotli"
DOWNLOAD="https://github.com/google/brotli/archive/refs/tags/v1.0.7.tar.gz"
REQUIRES="musl"
DESC="Generic-purpose lossless compression algorithm based on LZ77, Huffman coding and 2nd order context modeling"

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

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

  ./bootstrap

  ./configure \
    --prefix="" 

  make
  make install DESTDIR=$PKG

  cp LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
74c138ff3cd31185daed65666afb163279d2766d367bff9f3133252467772e47450b4b5dee9476d2cad4198d8e613739673de54648252b9d5e0887be5d87ca5d  brotli-1.0.7.tar.lz
"
