wok-next view wget/receipt @ rev 9583
Up: sqlite to 3.7.6.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Apr 12 12:13:42 2011 +0000 (2011-04-12) |
parents | a1f11761cb85 |
children | 35f2d9d491ed |
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 DEPENDS="openssl libidn"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.gnu.org/software/wget/wget.html"
11 WGET_URL="http://ftp.gnu.org/gnu/wget/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 ./configure &&
18 make DESTDIR=$PWD/_pkg install
19 }
21 # Rules to gen a SliTaz package suitable for Tazpkg.
22 genpkg_rules()
23 {
24 echo $_pkg
25 mkdir -p $fs/usr
26 cp -a $_pkg/usr/bin $fs/usr
27 }
29 # Post install rules.
30 post_install()
31 {
32 echo -e "
33 wget is in conflict with the busybox wget.
34 You'll have to re-install it after each busybox update.
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 /usr/bin/wget
56 }