2017-10-27 21:56:50 +02:00
|
|
|
|
# Tanım: Programs for compressing and decompressing files.
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://www.bzip.org/
|
2017-10-27 21:56:50 +02:00
|
|
|
|
# Paketçi: milisarge@gmail.com
|
|
|
|
|
# Gerekler:
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
isim=bzip2
|
|
|
|
|
surum=1.0.6
|
|
|
|
|
devir=1
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
kaynak=(http://www.bzip.org/$surum/bzip2-$surum.tar.gz \
|
|
|
|
|
http://www.linuxfromscratch.org/patches/lfs/development/bzip2-$surum-install_docs-1.patch)
|
2016-02-24 01:27:23 +01:00
|
|
|
|
|
2017-10-27 23:59:41 +02:00
|
|
|
|
derle() {
|
2017-10-28 14:15:02 +02:00
|
|
|
|
cd bzip2-$surum
|
2017-10-27 21:56:50 +02:00
|
|
|
|
|
2017-10-28 14:15:02 +02:00
|
|
|
|
patch -Np1 -i ../bzip2-$surum-install_docs-1.patch
|
2017-10-27 21:56:50 +02:00
|
|
|
|
sed -i 's@\(ln -s -f \)/bin/@\1@' Makefile
|
|
|
|
|
sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
|
|
|
|
|
|
|
|
|
|
make -f Makefile-libbz2_so
|
|
|
|
|
make clean
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
make PREFIX=$PKG/usr install
|
|
|
|
|
|
|
|
|
|
mkdir -pv $PKG/{bin,lib}
|
|
|
|
|
cp -v bzip2-shared $PKG/bin/bzip2
|
|
|
|
|
cp -av libbz2.so* $PKG/lib
|
|
|
|
|
ln -sv ../../lib/libbz2.so.1.0 $PKG/usr/lib/libbz2.so
|
|
|
|
|
rm -v $PKG/usr/bin/{bunzip2,bzcat,bzip2}
|
|
|
|
|
mv -v $PKG/usr/bin/* \
|
|
|
|
|
$PKG/bin
|
|
|
|
|
for i in bzegrep bzfgrep
|
|
|
|
|
do
|
|
|
|
|
ln -svf bzgrep $PKG/bin/$i
|
|
|
|
|
done
|
|
|
|
|
for i in bunzip2 bzcat
|
|
|
|
|
do
|
|
|
|
|
ln -svf bzip2 $PKG/bin/$i
|
|
|
|
|
done
|
|
|
|
|
for i in bzless
|
|
|
|
|
do
|
|
|
|
|
ln -svf bzmore $PKG/bin/$i
|
|
|
|
|
done
|
|
|
|
|
for i in bzcmp
|
|
|
|
|
do
|
|
|
|
|
ln -svf bzdiff $PKG/bin/$i
|
|
|
|
|
done
|
2016-02-24 01:27:23 +01:00
|
|
|
|
}
|