wok-next view wget/receipt @ rev 20869
mono: fix build on 32-bit
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Jul 02 10:15:48 2018 +0300 (2018-07-02) |
parents | 342b30daff76 |
children | d5aab818505e |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="wget"
4 VERSION="1.19.5"
5 CATEGORY="network"
6 SHORT_DESC="GNU Wget - the non-interactive network downloader"
7 MAINTAINER="sygne@ombres.eu"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnu.org/software/wget/"
11 TARBALL="$PACKAGE-$VERSION.tar.lz"
12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="lzip openssl-dev libidn2-dev util-linux-uuid-dev gettext \
15 zlib-dev perl pcre-dev libpsl-dev gnutls-dev"
16 SPLIT="wget+gnutls:gnutls"
18 compile_rules() {
19 case "$ARCH" in
20 arm) ARCH_ARGS="--with-libssl-prefix=/cross/$ARCH/sysroot/usr/lib" ;;
21 esac
23 case $SET in
24 '') SET_ARGS='--with-ssl=openssl';;
25 gnutls) SET_ARGS='--with-ssl=gnutls';;
26 esac
28 ./configure \
29 $ARCH_ARGS \
30 $SET_ARGS \
31 $CONFIGURE_ARGS &&
32 make DESTDIR=$DESTDIR install
33 }
35 genpkg_rules() {
36 copy @std
37 case $PACKAGE in
38 wget)
39 DEPENDS="libidn2 libpcre libpsl openssl util-linux-uuid zlib"
40 ;;
41 wget+gnutls)
42 DEPENDS="libgnutls libidn2 libpcre libpsl nettle util-linux-uuid \
43 zlib"
44 CAT="network|using GNUTLS instead of OpenSSL"
45 PROVIDE="wget"
46 ;;
47 esac
48 CONFIG_FILES="/etc/wgetrc"
49 }