# Tanım: Free general-purpose data compression software with high compression ratio.
# URL: http://tukaani.org/xz/
# Paketçi: milisarge
# Gerekler:

isim=xz
surum=5.2.2
devir=1

kaynak=(http://tukaani.org/xz/xz-$surum.tar.xz)
derle()
{
cd xz-$surum

sed -e '/mf\.buffer = NULL/a next->coder->mf.size = 0;' \
     -i src/liblzma/lz/lz_encoder.c

./configure --prefix=/usr \
--bindir=/bin \
 --docdir=/usr/share/doc/xz-$surum
make
make pkgconfigdir=/usr/lib/pkgconfig DESTDIR=$PKG install
mkdir -pv $PKG/{,usr/}lib
mv -v $PKG/usr/lib/liblzma.so.* \
$PKG/lib
ln -svf ../../lib/liblzma.so.$surum $PKG/usr/lib/liblzma.so
rm -r $PKG/usr/share/doc/
}
