talimat 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Tanım: Dosyaları sıkıştırma ve açma programları.
  2. # URL: http://www.bzip.org/
  3. # Paketçi: milisarge@gmail.com
  4. # Gerekler:
  5. # Grup: temel
  6. isim=bzip2
  7. surum=1.0.6
  8. devir=1
  9. kaynak=(http://www.bzip.org/$surum/bzip2-$surum.tar.gz \
  10. http://www.linuxfromscratch.org/patches/lfs/development/bzip2-$surum-install_docs-1.patch)
  11. derle() {
  12. cd bzip2-$surum
  13. patch -Np1 -i ../bzip2-$surum-install_docs-1.patch
  14. sed -i 's@\(ln -s -f \)/bin/@\1@' Makefile
  15. sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
  16. make -f Makefile-libbz2_so
  17. make clean
  18. make
  19. make PREFIX=$PKG/usr install
  20. mkdir -pv $PKG/{bin,lib}
  21. cp -v bzip2-shared $PKG/bin/bzip2
  22. cp -av libbz2.so* $PKG/lib
  23. ln -sv ../../lib/libbz2.so.1.0 $PKG/usr/lib/libbz2.so
  24. rm -v $PKG/usr/bin/{bunzip2,bzcat,bzip2}
  25. mv -v $PKG/usr/bin/* \
  26. $PKG/bin
  27. for i in bzegrep bzfgrep
  28. do
  29. ln -svf bzgrep $PKG/bin/$i
  30. done
  31. for i in bunzip2 bzcat
  32. do
  33. ln -svf bzip2 $PKG/bin/$i
  34. done
  35. for i in bzless
  36. do
  37. ln -svf bzmore $PKG/bin/$i
  38. done
  39. for i in bzcmp
  40. do
  41. ln -svf bzdiff $PKG/bin/$i
  42. done
  43. }