app=xz
version=5.2.5
build=1sml
homepage="https://tukaani.org/xz/"
download="https://tukaani.org/xz/xz-$version.tar.xz"
desc="Compression utility based on the LZMA algorithm"
requires="musl"

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

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

  ./configure \
    --prefix="" \
    --bindir=/bin \
    --disable-nls \
    --enable-static \
    --with-pic 

  make
  make install DESTDIR=$pkg

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
59266068a51cb616eb31b67cd8f07ffeb2288d1391c61665ae2ec6814465afac80fec69248f6a2f2db45b44475af001296a99af6a32287226a9c41419173ccbb  xz-5.2.5.tar.xz
"
