wok view wget/receipt @ rev 18701

Up tazpkg(889)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Dec 16 12:18:23 2015 +0200 (2015-12-16)
parents d5f9f516b706
children 3b127f92c057
line source
1 # SliTaz package receipt.
3 PACKAGE="wget"
4 VERSION="1.16"
5 CATEGORY="utilities"
6 SHORT_DESC="retrieves files from the web"
7 MAINTAINER="sygne@ombres.eu"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://www.gnu.org/software/wget/wget.html"
11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="openssl libidn pcre"
15 BUILD_DEPENDS="openssl-dev libidn-dev"
17 # Handle cross compilation
18 case "$ARCH" in
19 arm) ARCH_ARGS="--with-libssl-prefix=/cross/$ARCH/sysroot/usr/lib" ;;
20 esac
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ./configure --with-ssl=openssl \
26 $CONFIGURE_ARGS $ARCH_ARGS &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 cp -a $install/usr/bin $fs/usr
35 }
37 # Post install rules.
38 post_install()
39 {
40 [ -z "$quiet" ] && echo -e "
41 wget is in conflict with the busybox wget.
42 If you want to use the busybox wget, do (as root):
43 \033[1m ln -s /bin/busybox /usr/bin/wget \033[0m
44 "
45 :
46 }
48 post_remove()
49 {
50 ln -s /bin/busybox "$1/usr/bin/wget"
51 }