talimat 959 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Tanım: Utility for transferring files with URL syntax to many protocols
  2. # URL: http://curl.haxx.se/
  3. # Paketçi: milisarge@gmail.com
  4. # Gerekler:
  5. # Grup: temel
  6. isim=curl
  7. surum=7.47.1
  8. devir=1
  9. kaynak=(http://curl.haxx.se/download/$isim-$surum.tar.lzma)
  10. derle() {
  11. cd $isim-$surum
  12. ./configure --prefix=/usr \
  13. --bindir=/bin \
  14. --with-ca-path=/etc/ssl/certs \
  15. --enable-threaded-resolver
  16. make
  17. make DESTDIR=$PKG install
  18. find docs \( -name Makefile\* \
  19. -o -name \*.1 \
  20. -o -name \*.3 \) \
  21. -exec rm {} \;
  22. install -v -d -m755 $PKG/usr/share/doc/curl-$surum
  23. cp -v -R docs/* \
  24. $PKG/usr/share/doc/curl-$surum
  25. # reorganise the libs
  26. mkdir $PKG/lib
  27. mv $PKG/usr/lib/libcurl.so.4.4.0 \
  28. $PKG/lib/
  29. for LIB in libcurl.so{,.4}
  30. do
  31. ln -sv libcurl.so.4.4.0 $PKG/lib/$LIB
  32. rm $PKG/usr/lib/$LIB
  33. ln -sv ../../lib/libcurl.so.4.4.0 \
  34. $PKG/usr/lib/$LIB
  35. done
  36. ln -sv ../../lib/libcurl.so.4.4.0 \
  37. $PKG/usr/lib/libcurl.so.4.4.0
  38. }