talimat 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # Description: Programs for compressing and decompressing files.
  2. # URL: http://www.bzip.org/
  3. # Maintainer: Julian Seward ( jseward at bzip dot org )
  4. # Packager: milisarge@gmail.com
  5. name=bzip2
  6. version=1.0.6
  7. release=1
  8. source=(http://www.bzip.org/$version/bzip2-$version.tar.gz \
  9. http://www.linuxfromscratch.org/patches/lfs/development/bzip2-$version-install_docs-1.patch)
  10. build() {
  11. cd bzip2-$version
  12. patch -Np1 -i ../bzip2-$version-install_docs-1.patch
  13. sed -i 's@\(ln -s -f \)/bin/@\1@' Makefile
  14. sed -i "s@(PREFIX)/man@(PREFIX)/share/man@g" Makefile
  15. make -f Makefile-libbz2_so
  16. make clean
  17. make
  18. make PREFIX=$PKG/usr install
  19. mkdir -pv $PKG/{bin,lib}
  20. cp -v bzip2-shared $PKG/bin/bzip2
  21. cp -av libbz2.so* $PKG/lib
  22. ln -sv ../../lib/libbz2.so.1.0 $PKG/usr/lib/libbz2.so
  23. rm -v $PKG/usr/bin/{bunzip2,bzcat,bzip2}
  24. mv -v $PKG/usr/bin/* \
  25. $PKG/bin
  26. for i in bzegrep bzfgrep
  27. do
  28. ln -svf bzgrep $PKG/bin/$i
  29. done
  30. for i in bunzip2 bzcat
  31. do
  32. ln -svf bzip2 $PKG/bin/$i
  33. done
  34. for i in bzless
  35. do
  36. ln -svf bzmore $PKG/bin/$i
  37. done
  38. for i in bzcmp
  39. do
  40. ln -svf bzdiff $PKG/bin/$i
  41. done
  42. }