# Maintainer: PktSurf <smlinux@pktsurf.in>
app=xz
version=5.2.5
build=3sml
homepage="https://tukaani.org/xz/"
download="https://tukaani.org/xz/xz-$version.tar.xz"
desc="Compression utility based on the LZMA algorithm"
requires="musl"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  ./configure \
    --prefix="" \
    --bindir=/bin \
    --docdir="/share/doc/$app-$version" \
    --enable-static \
    --with-pic 

  make
  make install DESTDIR=$pkg

  mkfinalpkg
}

sha512sums="
f477f8a41cc3d88b0ffcac8d414721c7734bac2380c103261e5446067638e17e08b993d9bf221de1e09f69a89eca0a9cafd98f16be914a5cf3170a65d8fae937  xz-5.2.5.tar.lz
"
