wok-next annotate curl/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents d3730d754d47
children e7e7475e84c9
rev   line source
al@19737 1 # SliTaz package receipt v2.
pankso@14 2
pankso@14 3 PACKAGE="curl"
al@20964 4 VERSION="7.61.1"
pankso@203 5 CATEGORY="network"
al@19737 6 SHORT_DESC="Tool and libs for transferring files with URL syntax"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15472 8 LICENSE="MIT"
al@19607 9 WEB_SITE="https://curl.haxx.se/"
al@20902 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/basicnet/curl.html"
pankso@14 11
al@20443 12 TARBALL="$PACKAGE-$VERSION.tar.xz"
al@19607 13 WGET_URL="https://curl.haxx.se/download/$TARBALL"
al@19607 14
al@20902 15 BUILD_DEPENDS="zlib-dev openssl-dev libidn2-dev"
al@20902 16 # libssh2-dev c-ares-dev brotli-dev openldap-dev libpsl-dev"
al@21020 17 SPLIT="libcurl $PACKAGE-dev"
erjo@10667 18
al@20443 19 compile_rules() {
al@20902 20 # --with-libssh2 --with-brotli --enable-ldap --with-nghttp2
al@20902 21
pankso@1838 22 ./configure \
al@19607 23 --disable-static \
al@19607 24 --enable-threaded-resolver \
al@20443 25 --with-ca-path=/etc/ssl/certs \
pascal@2489 26 $CONFIGURE_ARGS &&
al@20569 27 fix libtool &&
al@20569 28 make &&
al@20569 29 make install || return 1
al@20443 30
al@20443 31 rm -rf docs/examples/.deps
al@20443 32 find docs \( -name Makefile\* -o -name \*.1 -o -name \*.3 \) -exec rm {} \;
al@20443 33 cook_pick_docs docs/*
pankso@14 34 }
pankso@14 35
al@20443 36 genpkg_rules() {
al@19737 37 case $PACKAGE in
al@19737 38 curl)
al@19737 39 copy curl
al@20902 40 DEPENDS="libcurl"
al@19737 41 ;;
al@19737 42 libcurl)
al@19737 43 copy *.so*
al@20902 44 DEPENDS="libidn2 openssl zlib"
al@19737 45 CAT="network|library"
al@19737 46 ;;
al@19737 47 curl-dev)
al@19737 48 copy @dev
al@20902 49 DEPENDS="curl libidn2-dev openssl-dev zlib-dev"
al@19737 50 ;;
al@19737 51 esac
pankso@14 52 }