2016-02-24 01:27:23 +01:00
|
|
|
# Description: Free general-purpose data compression software with high compression ratio.
|
|
|
|
# URL: http://tukaani.org/xz/
|
|
|
|
# Maintainer: Lasse Collin, lasse dot collin at tukaani dot org
|
2016-03-20 02:15:25 +01:00
|
|
|
# Packager: milisarge@gmail.com
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
|
|
name=xz
|
|
|
|
version=5.2.2
|
|
|
|
release=1
|
|
|
|
|
|
|
|
source=(http://tukaani.org/xz/xz-$version.tar.xz)
|
|
|
|
build()
|
|
|
|
{
|
|
|
|
cd xz-$version
|
|
|
|
|
|
|
|
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-$version
|
|
|
|
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.$version $PKG/usr/lib/liblzma.so
|
2016-03-07 13:45:49 +01:00
|
|
|
rm -r $PKG/usr/share/doc/
|
|
|
|
}
|