wok-next view curl/receipt @ rev 20569

Fix libtool where applicable (a*-f* packages yet); combine collectd* receipts
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Apr 13 07:14:16 2018 +0300 (2018-04-13)
parents 0e7893ac206d
children b96375904f8e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="curl"
4 VERSION="7.55.1"
5 CATEGORY="network"
6 SHORT_DESC="Tool and libs for transferring files with URL syntax"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://curl.haxx.se/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/basicnet/curl.html"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="https://curl.haxx.se/download/$TARBALL"
15 BUILD_DEPENDS="zlib-dev openssl-dev libssh2-dev libidn2-dev"
16 SPLIT="libcurl curl-dev"
18 compile_rules() {
19 ./configure \
20 --disable-static \
21 --enable-threaded-resolver \
22 --with-ca-path=/etc/ssl/certs \
23 $CONFIGURE_ARGS &&
24 fix libtool &&
25 make &&
26 make install || return 1
28 rm -rf docs/examples/.deps
29 find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \;
30 cook_pick_docs docs/*
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 curl)
36 copy curl
37 DEPENDS="libcurl openssl zlib"
38 ;;
39 libcurl)
40 copy *.so*
41 DEPENDS="libidn2 libssh2 openssl zlib"
42 CAT="network|library"
43 ;;
44 curl-dev)
45 copy @dev
46 DEPENDS="curl libidn2-dev libssh2-dev openssl-dev zlib-dev"
47 ;;
48 esac
49 }