wok-6.x annotate wget/receipt @ rev 23392
updated perl-template-toolkit (2.26 -> 3.008)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 16:54:23 2020 +0100 (2020-03-31) |
parents | 427e7751c594 |
children | 71360a13cd94 |
rev | line source |
---|---|
sygne@1558 | 1 # SliTaz package receipt. |
sygne@1558 | 2 |
sygne@1558 | 3 PACKAGE="wget" |
Hans-G?nter@22126 | 4 VERSION="1.20.3" |
al@19202 | 5 CATEGORY="network" |
Hans-G?nter@22126 | 6 SHORT_DESC="An utility for retrieving files using HTTP, HTTPS or FTP." |
sygne@1558 | 7 MAINTAINER="sygne@ombres.eu" |
pascal@15201 | 8 LICENSE="GPL3" |
Hans-G?nter@22126 | 9 WEB_SITE="https://www.gnu.org/software/wget/" |
Hans-G?nter@22126 | 10 |
Hans-G?nter@20498 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@11143 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
Hans-G?nter@22126 | 13 |
Hans-G?nter@22126 | 14 DEPENDS="libidn libssl pcre util-linux-uuid zlib" |
Hans-G?nter@22126 | 15 BUILD_DEPENDS="flex libidn-dev openssl-dev util-linux-uuid-dev" |
Hans-G?nter@22126 | 16 |
al@18963 | 17 CONFIG_FILES="/etc/wgetrc" |
sygne@1558 | 18 |
Hans-G?nter@22126 | 19 HOST_ARCH="i486 arm" |
pankso@9801 | 20 |
pankso@16059 | 21 # Handle cross compilation |
pankso@16059 | 22 case "$ARCH" in |
pankso@16059 | 23 arm) ARCH_ARGS="--with-libssl-prefix=/cross/$ARCH/sysroot/usr/lib" ;; |
pankso@16059 | 24 esac |
pankso@16059 | 25 |
sygne@1558 | 26 # Rules to configure and make the package. |
sygne@1558 | 27 compile_rules() |
sygne@1558 | 28 { |
Hans-G?nter@22126 | 29 ./configure \ |
Hans-G?nter@22126 | 30 --with-ssl=openssl \ |
Hans-G?nter@22126 | 31 --with-openssl \ |
Hans-G?nter@22126 | 32 --sysconfdir=/etc \ |
Hans-G?nter@22126 | 33 $CONFIGURE_ARGS \ |
Hans-G?nter@22126 | 34 $ARCH_ARGS && |
pankso@9801 | 35 make DESTDIR=$DESTDIR install |
al@18963 | 36 |
al@19202 | 37 gzip -9 $install/usr/share/man/man1/wget.1 |
sygne@1558 | 38 } |
sygne@1558 | 39 |
sygne@1558 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
sygne@1558 | 41 genpkg_rules() |
sygne@1558 | 42 { |
al@19202 | 43 cp -a $install/* $fs |
Hans-G?nter@22126 | 44 |
Hans-G?nter@22126 | 45 rm -r $fs/usr/share/info |
Hans-G?nter@22126 | 46 rm -r $fs/usr/share/locale |
sygne@1558 | 47 } |
sygne@1558 | 48 |
rcx@3923 | 49 post_remove() |
rcx@3923 | 50 { |
al@18667 | 51 ln -s /bin/busybox "$1/usr/bin/wget" |
rcx@3923 | 52 } |