wok annotate wget/receipt @ rev 18963

Up wget (1.17)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 09 19:55:45 2016 +0200 (2016-03-09)
parents fca172c323cf
children d5596dfb8eb2
rev   line source
sygne@1558 1 # SliTaz package receipt.
sygne@1558 2
sygne@1558 3 PACKAGE="wget"
al@18963 4 VERSION="1.17"
sygne@1558 5 CATEGORY="utilities"
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"
sygne@1558 10 WEB_SITE="http://www.gnu.org/software/wget/wget.html"
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@18963 33 gzip $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@17288 39 mkdir -p $fs/usr
pascal@14999 40 cp -a $install/usr/bin $fs/usr
al@18963 41 cp -a $install/etc $fs
sygne@1558 42 }
sygne@1558 43
rcx@3923 44 post_remove()
rcx@3923 45 {
al@18667 46 ln -s /bin/busybox "$1/usr/bin/wget"
rcx@3923 47 }