APP=lz4
VERSION=1.9.2
BUILD=1sml
HOMEPAGE='https://github.com/lz4/lz4'
DOWNLOAD='https://github.com/lz4/lz4/archive/refs/tags/v1.9.2.tar.gz'
DESC="lossless compression algorithm"
REQUIRES="musl"

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

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

  make -j1 \
    CFLAGS="$CFLAGS" \
    PREFIX="" \
    MANDIR="/share/man" \
    BUILD_STATIC=no \
    DESTDIR=$PKG default install

  cp LICENSE $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
ae714c61ec8e33ed91359b63f2896cfa102d66b730dce112b74696ec5850e59d88bd5527173e01e354a70fbe8f036557a47c767ee0766bc5f9c257978116c3c1  lz4-1.9.2.tar.gz
"
