wok-next view wget/receipt @ rev 15103

xorg-xfontsel: no more /usr/share/X11 ?
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 14 13:01:34 2013 +0000 (2013-08-14)
parents fdf32f3b2d65
children f4c22f009037
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 LICENCE="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"
13 DEPENDS="openssl libidn"
14 BUILD_DEPENDS="openssl-dev libidn-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure --with-ssl=openssl $CONFIGURE_ARGS &&
21 make DESTDIR=$DESTDIR install
22 }
24 # Rules to gen a SliTaz package suitable for Tazpkg.
25 genpkg_rules()
26 {
27 mkdir -p $fs/usr
28 cp -a $install/usr/bin $fs/usr
29 }
31 # Post install rules.
32 post_install()
33 {
34 echo -e "
35 wget is in conflict with the busybox wget.
36 If you want to use the busybox wget, do (as root):
37 \033[1m ln -s /bin/busybox /usr/bin/wget \033[0m
38 "
39 }
41 # Pre and post install commands for Tazpkg.
42 # We must remove all Busybox symlink before installing.
43 #
44 pre_install()
45 {
46 local root
47 root=$1
48 echo "Processing pre-install commands..."
49 echo -n "Removing all Busybox replaced utils... "
50 rm -f $root/usr/bin/wget
51 status
52 }
54 post_remove()
55 {
56 ln -s /bin/busybox $1/usr/bin/wget
57 }