wok-4.x view wget/receipt @ rev 12466
New toolchain GCC 4.9.2, Glibc 2.19, Binutils 2.23.1
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Nov 09 15:12:00 2022 +0000 (2022-11-09) |
parents | b59066f9fc8d |
children | e937cb65232c |
line source
1 # SliTaz package receipt.
3 PACKAGE="wget"
4 VERSION="1.17.1"
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 }