wok-next annotate 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 |
rev | line source |
---|---|
sygne@1558 | 1 # SliTaz package receipt. |
sygne@1558 | 2 |
sygne@1558 | 3 PACKAGE="wget" |
erjo@4299 | 4 VERSION="1.12" |
sygne@1558 | 5 CATEGORY="utilities" |
sygne@1558 | 6 SHORT_DESC="retrieve files from the web" |
sygne@1558 | 7 MAINTAINER="sygne@ombres.eu" |
pascal@5007 | 8 DEPENDS="openssl libidn" |
sygne@1558 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
sygne@1558 | 10 WEB_SITE="http://www.gnu.org/software/wget/wget.html" |
sygne@1558 | 11 WGET_URL="http://ftp.gnu.org/gnu/wget/$TARBALL" |
sygne@1558 | 12 |
sygne@1558 | 13 # Rules to configure and make the package. |
sygne@1558 | 14 compile_rules() |
sygne@1558 | 15 { |
sygne@1558 | 16 cd $src |
gokhlayeh@8220 | 17 ./configure && |
sygne@1558 | 18 make DESTDIR=$PWD/_pkg install |
sygne@1558 | 19 } |
sygne@1558 | 20 |
sygne@1558 | 21 # Rules to gen a SliTaz package suitable for Tazpkg. |
sygne@1558 | 22 genpkg_rules() |
sygne@1558 | 23 { |
sygne@1558 | 24 echo $_pkg |
sygne@1558 | 25 mkdir -p $fs/usr |
gokhlayeh@8220 | 26 cp -a $_pkg/usr/bin $fs/usr |
sygne@1558 | 27 } |
sygne@1558 | 28 |
sygne@1558 | 29 # Post install rules. |
sygne@1558 | 30 post_install() |
sygne@1558 | 31 { |
sygne@1558 | 32 echo -e " |
sygne@1558 | 33 wget is in conflict with the busybox wget. |
sygne@1558 | 34 You'll have to re-install it after each busybox update. |
sygne@1558 | 35 If you want to use the busybox wget, do (as root): |
sygne@1558 | 36 \033[1m ln -s /bin/busybox /usr/bin/wget \033[0m |
sygne@1558 | 37 " |
sygne@1558 | 38 } |
sygne@1558 | 39 |
rcx@3923 | 40 # Pre and post install commands for Tazpkg. |
rcx@3923 | 41 # We must remove all Busybox symlink before installing. |
rcx@3923 | 42 # |
rcx@3923 | 43 pre_install() |
rcx@3923 | 44 { |
rcx@3923 | 45 local root |
rcx@3923 | 46 root=$1 |
rcx@3923 | 47 echo "Processing pre-install commands..." |
rcx@3923 | 48 echo -n "Removing all Busybox replaced utils... " |
rcx@3923 | 49 rm -f $root/usr/bin/wget |
rcx@3923 | 50 status |
rcx@3923 | 51 } |
sygne@1558 | 52 |
rcx@3923 | 53 post_remove() |
rcx@3923 | 54 { |
rcx@3923 | 55 ln -s /bin/busybox /usr/bin/wget |
rcx@3923 | 56 } |