wok annotate wget/receipt @ rev 17870

Add: perl-fcgi FCGI
author Nathan Neulinger <nneul@neulinger.org>
date Thu Mar 26 23:41:28 2015 +0000 (2015-03-26)
parents 3501b1928e39
children a168f60e7dd8
rev   line source
sygne@1558 1 # SliTaz package receipt.
sygne@1558 2
sygne@1558 3 PACKAGE="wget"
al@17288 4 VERSION="1.16"
sygne@1558 5 CATEGORY="utilities"
al@17288 6 SHORT_DESC="retrieves files from the web"
sygne@1558 7 MAINTAINER="sygne@ombres.eu"
pascal@15201 8 LICENSE="GPL3"
slaxemulator@11143 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
sygne@1558 10 WEB_SITE="http://www.gnu.org/software/wget/wget.html"
slaxemulator@11143 11 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL"
pankso@16059 12 HOST_ARCH="i486 arm"
sygne@1558 13
pascal@16214 14 DEPENDS="openssl libidn pcre"
pankso@9801 15 BUILD_DEPENDS="openssl-dev libidn-dev"
pankso@9801 16
pankso@16059 17 # Handle cross compilation
pankso@16059 18 case "$ARCH" in
pankso@16059 19 arm) ARCH_ARGS="--with-libssl-prefix=/cross/$ARCH/sysroot/usr/lib" ;;
pankso@16059 20 esac
pankso@16059 21
sygne@1558 22 # Rules to configure and make the package.
sygne@1558 23 compile_rules()
sygne@1558 24 {
pankso@16059 25 ./configure --with-ssl=openssl \
pankso@16059 26 $CONFIGURE_ARGS $ARCH_ARGS &&
pankso@9801 27 make DESTDIR=$DESTDIR install
sygne@1558 28 }
sygne@1558 29
sygne@1558 30 # Rules to gen a SliTaz package suitable for Tazpkg.
sygne@1558 31 genpkg_rules()
sygne@1558 32 {
al@17288 33 mkdir -p $fs/usr
pascal@14999 34 cp -a $install/usr/bin $fs/usr
sygne@1558 35 }
sygne@1558 36
sygne@1558 37 # Post install rules.
sygne@1558 38 post_install()
sygne@1558 39 {
sygne@1558 40 echo -e "
sygne@1558 41 wget is in conflict with the busybox wget.
sygne@1558 42 If you want to use the busybox wget, do (as root):
sygne@1558 43 \033[1m ln -s /bin/busybox /usr/bin/wget \033[0m
sygne@1558 44 "
sygne@1558 45 }
sygne@1558 46
rcx@3923 47 # Pre and post install commands for Tazpkg.
rcx@3923 48 # We must remove all Busybox symlink before installing.
rcx@3923 49 #
rcx@3923 50 pre_install()
rcx@3923 51 {
rcx@3923 52 local root
rcx@3923 53 root=$1
rcx@3923 54 echo "Processing pre-install commands..."
rcx@3923 55 echo -n "Removing all Busybox replaced utils... "
rcx@3923 56 rm -f $root/usr/bin/wget
rcx@3923 57 status
rcx@3923 58 }
sygne@1558 59
rcx@3923 60 post_remove()
rcx@3923 61 {
slaxemulator@10049 62 ln -s /bin/busybox $1/usr/bin/wget
rcx@3923 63 }