wok view wget/receipt @ rev 19026
Up tazpkg(905)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sun Apr 03 03:59:59 2016 +0300 (2016-04-03) |
parents | fca172c323cf |
children | d5596dfb8eb2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wget"
4 VERSION="1.17"
5 CATEGORY="utilities"
6 SHORT_DESC="GNU Wget - non-interactive download of 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"
13 CONFIG_FILES="/etc/wgetrc"
15 DEPENDS="libssl libidn pcre util-linux-uuid zlib"
16 BUILD_DEPENDS="openssl-dev libidn-dev flex util-linux-uuid-dev"
18 # Handle cross compilation
19 case "$ARCH" in
20 arm) ARCH_ARGS="--with-libssl-prefix=/cross/$ARCH/sysroot/usr/lib" ;;
21 esac
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --with-ssl=openssl \
28 --with-openssl \
29 --sysconfdir=/etc \
30 $CONFIGURE_ARGS $ARCH_ARGS &&
31 make DESTDIR=$DESTDIR install
33 gzip $install/usr/share/man/man1/wget.1
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/etc $fs
42 }
44 post_remove()
45 {
46 ln -s /bin/busybox "$1/usr/bin/wget"
47 }