talimat 971 B

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