12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- # Tanım: Dosyaları sıkıştırma ve açma programları.
- # URL: http://www.bzip.org/
- # Paketçi: milisarge@gmail.com
- # Gerekler:
- # Grup: temel
- isim=bzip2
- surum=1.0.6
- devir=1
- kaynak=(http://www.bzip.org/$surum/bzip2-$surum.tar.gz \
- http://www.linuxfromscratch.org/patches/lfs/development/bzip2-$surum-install_docs-1.patch)
- derle() {
- cd bzip2-$surum
- patch -Np1 -i ../bzip2-$surum-install_docs-1.patch
- 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
- }
|