wok-next annotate wget/receipt @ rev 19416
Up cookutils (831)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Sep 24 18:11:26 2016 +0200 (2016-09-24) |
parents | 3b127f92c057 |
children | fe59386a94f9 |
rev | line source |
---|---|
sygne@1558 | 1 # SliTaz package receipt. |
sygne@1558 | 2 |
sygne@1558 | 3 PACKAGE="wget" |
al@19202 | 4 VERSION="1.18" |
al@19202 | 5 CATEGORY="network" |
al@18963 | 6 SHORT_DESC="GNU Wget - non-interactive download of files from the Web" |
sygne@1558 | 7 MAINTAINER="sygne@ombres.eu" |
pascal@15201 | 8 LICENSE="GPL3" |
slaxemulator@11143 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19202 | 10 WEB_SITE="http://www.gnu.org/software/wget/" |
slaxemulator@11143 | 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pankso@16059 | 12 HOST_ARCH="i486 arm" |
al@18963 | 13 CONFIG_FILES="/etc/wgetrc" |
sygne@1558 | 14 |
al@18963 | 15 DEPENDS="libssl libidn pcre util-linux-uuid zlib" |
al@18963 | 16 BUILD_DEPENDS="openssl-dev libidn-dev flex util-linux-uuid-dev" |
pankso@9801 | 17 |
pankso@16059 | 18 # Handle cross compilation |
pankso@16059 | 19 case "$ARCH" in |
pankso@16059 | 20 arm) ARCH_ARGS="--with-libssl-prefix=/cross/$ARCH/sysroot/usr/lib" ;; |
pankso@16059 | 21 esac |
pankso@16059 | 22 |
sygne@1558 | 23 # Rules to configure and make the package. |
sygne@1558 | 24 compile_rules() |
sygne@1558 | 25 { |
al@18963 | 26 ./configure \ |
al@18963 | 27 --with-ssl=openssl \ |
al@18963 | 28 --with-openssl \ |
al@18963 | 29 --sysconfdir=/etc \ |
pankso@16059 | 30 $CONFIGURE_ARGS $ARCH_ARGS && |
pankso@9801 | 31 make DESTDIR=$DESTDIR install |
al@18963 | 32 |
al@19202 | 33 gzip -9 $install/usr/share/man/man1/wget.1 |
sygne@1558 | 34 } |
sygne@1558 | 35 |
sygne@1558 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
sygne@1558 | 37 genpkg_rules() |
sygne@1558 | 38 { |
al@19202 | 39 cp -a $install/* $fs |
al@19202 | 40 rm -r $fs/usr/share/info $fs/usr/share/locale |
sygne@1558 | 41 } |
sygne@1558 | 42 |
rcx@3923 | 43 post_remove() |
rcx@3923 | 44 { |
al@18667 | 45 ln -s /bin/busybox "$1/usr/bin/wget" |
rcx@3923 | 46 } |