wok-stable view wget/receipt @ rev 10587

python-pygame: update bdeps (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 26 11:58:43 2011 +0200 (2011-05-26)
parents 35f2d9d491ed
children b59066f9fc8d
line source
1 # SliTaz package receipt.
3 PACKAGE="wget"
4 VERSION="1.12"
5 CATEGORY="utilities"
6 SHORT_DESC="retrieve files from the web"
7 MAINTAINER="sygne@ombres.eu"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.gnu.org/software/wget/wget.html"
10 WGET_URL="http://ftp.gnu.org/gnu/wget/$TARBALL"
12 DEPENDS="openssl libidn"
13 BUILD_DEPENDS="openssl-dev libidn-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure $CONFIGURE_ARGS &&
20 make DESTDIR=$DESTDIR install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr
27 cp -a $_pkg/usr/bin $fs/usr
28 }
30 # Post install rules.
31 post_install()
32 {
33 echo -e "
34 wget is in conflict with the busybox wget.
35 If you want to use the busybox wget, do (as root):
36 \033[1m ln -s /bin/busybox /usr/bin/wget \033[0m
37 "
38 }
40 # Pre and post install commands for Tazpkg.
41 # We must remove all Busybox symlink before installing.
42 #
43 pre_install()
44 {
45 local root
46 root=$1
47 echo "Processing pre-install commands..."
48 echo -n "Removing all Busybox replaced utils... "
49 rm -f $root/usr/bin/wget
50 status
51 }
53 post_remove()
54 {
55 ln -s /bin/busybox $1/usr/bin/wget
56 }