talimat 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. # Description: bir önbellek derleyicisi
  2. # URL: http://ccache.samba.org/
  3. # Packager: milisarge
  4. # Depends on:
  5. name=ccache
  6. version=3.3.4
  7. release=1
  8. source=(http://samba.org/ftp/ccache/ccache-$version.tar.xz)
  9. build() {
  10. cd ${SRC}/${name}-${version}
  11. ./configure --prefix=/usr \
  12. --sysconfdir=/etc
  13. make
  14. cd ${SRC}/${name}-${version}
  15. install -Dm 755 ccache ${PKG}/usr/bin/ccache
  16. install -Dm 644 ccache.1 ${PKG}/usr/share/man/man1/ccache.1
  17. install -d ${PKG}/usr/lib/ccache/bin
  18. ln -sf /usr/bin/ccache ${PKG}/usr/lib/ccache/bin/cc
  19. ln -sf /usr/bin/ccache ${PKG}/usr/lib/ccache/bin/gcc
  20. ln -sf /usr/bin/ccache ${PKG}/usr/lib/ccache/bin/g++
  21. ln -sf /usr/bin/ccache ${PKG}/usr/lib/ccache/bin/cpp
  22. ln -sf /usr/bin/ccache ${PKG}/usr/lib/ccache/bin/c++
  23. ln -sf /usr/bin/ccache ${PKG}/usr/lib/ccache/bin/${CHOST}-cc
  24. ln -sf /usr/bin/ccache ${PKG}/usr/lib/ccache/bin/${CHOST}-gcc
  25. ln -sf /usr/bin/ccache ${PKG}/usr/lib/ccache/bin/${CHOST}-g++
  26. ln -sf /usr/bin/ccache ${PKG}/usr/lib/ccache/bin/${CHOST}-cpp
  27. ln -sf /usr/bin/ccache ${PKG}/usr/lib/ccache/bin/${CHOST}-c++
  28. }