wok-6.x view wget/receipt @ rev 17295
libfm: add support of empty files (empty files not a text and not a binary, its... empty)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Oct 30 01:21:22 2014 +0200 (2014-10-30) |
parents | 3501b1928e39 |
children | a168f60e7dd8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wget"
4 VERSION="1.16"
5 CATEGORY="utilities"
6 SHORT_DESC="retrieves files from the web"
7 MAINTAINER="sygne@ombres.eu"
8 LICENSE="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"
12 HOST_ARCH="i486 arm"
14 DEPENDS="openssl libidn pcre"
15 BUILD_DEPENDS="openssl-dev libidn-dev"
17 # Handle cross compilation
18 case "$ARCH" in
19 arm) ARCH_ARGS="--with-libssl-prefix=/cross/$ARCH/sysroot/usr/lib" ;;
20 esac
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 ./configure --with-ssl=openssl \
26 $CONFIGURE_ARGS $ARCH_ARGS &&
27 make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr
34 cp -a $install/usr/bin $fs/usr
35 }
37 # Post install rules.
38 post_install()
39 {
40 echo -e "
41 wget is in conflict with the busybox wget.
42 If you want to use the busybox wget, do (as root):
43 \033[1m ln -s /bin/busybox /usr/bin/wget \033[0m
44 "
45 }
47 # Pre and post install commands for Tazpkg.
48 # We must remove all Busybox symlink before installing.
49 #
50 pre_install()
51 {
52 local root
53 root=$1
54 echo "Processing pre-install commands..."
55 echo -n "Removing all Busybox replaced utils... "
56 rm -f $root/usr/bin/wget
57 status
58 }
60 post_remove()
61 {
62 ln -s /bin/busybox $1/usr/bin/wget
63 }