milis/talimatname/temel/curl/talimat

46 lines
945 B
Plaintext
Raw Normal View History

2017-10-27 21:56:50 +02:00
# Tanım: Utility for transferring files with URL syntax to many protocols
2016-02-24 01:27:23 +01:00
# URL: http://curl.haxx.se/
2017-10-27 21:56:50 +02:00
# Paketçi: milisarge@gmail.com
# Gerekler:
2016-02-24 01:27:23 +01:00
2017-10-28 14:15:02 +02:00
isim=curl
surum=7.47.1
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:15:02 +02:00
kaynak=(http://curl.haxx.se/download/$isim-$surum.tar.lzma)
2016-02-24 01:27:23 +01:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:15:02 +02:00
cd $isim-$surum
2017-10-27 21:56:50 +02:00
./configure --prefix=/usr \
--bindir=/bin \
--with-ca-path=/etc/ssl/certs \
--enable-threaded-resolver
make
make DESTDIR=$PKG install
find docs \( -name Makefile\* \
-o -name \*.1 \
-o -name \*.3 \) \
-exec rm {} \;
2017-10-28 14:15:02 +02:00
install -v -d -m755 $PKG/usr/share/doc/curl-$surum
2017-10-27 21:56:50 +02:00
cp -v -R docs/* \
2017-10-28 14:15:02 +02:00
$PKG/usr/share/doc/curl-$surum
2017-10-27 21:56:50 +02:00
# reorganise the libs
mkdir $PKG/lib
mv $PKG/usr/lib/libcurl.so.4.4.0 \
$PKG/lib/
for LIB in libcurl.so{,.4}
do
ln -sv libcurl.so.4.4.0 $PKG/lib/$LIB
rm $PKG/usr/lib/$LIB
ln -sv ../../lib/libcurl.so.4.4.0 \
$PKG/usr/lib/$LIB
done
ln -sv ../../lib/libcurl.so.4.4.0 \
$PKG/usr/lib/libcurl.so.4.4.0
2016-02-24 01:27:23 +01:00
}