wok-6.x view wget/receipt @ rev 14328
Up: enlightenment (0.17.2.1)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Fri Apr 12 19:23:54 2013 +0200 (2013-04-12) |
parents | b59066f9fc8d |
children | 2b9f96603415 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wget"
4 VERSION="1.14"
5 CATEGORY="utilities"
6 SHORT_DESC="retrieve files from the web"
7 MAINTAINER="sygne@ombres.eu"
8 TARBALL="$PACKAGE-$VERSION.tar.xz"
9 WEB_SITE="http://www.gnu.org/software/wget/wget.html"
10 WGET_URL="$GNU_MIRROR/$PACKAGE/$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 --with-ssl=openssl $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 }