# Contributor: Carlo Landmeter # Maintainer: Carlo Landmeter pkgname=wget pkgver=1.16.3 pkgrel=1 pkgdesc="A network utility to retrieve files from the Web" url="http://www.gnu.org/software/wget/wget.html" arch="all" license="GPL3+" depends="" makedepends="openssl-dev perl" subpackages="$pkgname-doc" install="" source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-ssl=openssl \ --disable-nls \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -rf "$pkgdir"/usr/lib/charset.alias rmdir -p "$pkgdir"/usr/lib 2>/dev/null return 0 } md5sums="f61d9011b99f824106a5d5a05dd0f63d wget-1.16.3.tar.gz" sha256sums="9f1c6d09d7148c1c2d9fd0ea655dcf4dcc407deb2db32d4126251ca0245cb670 wget-1.16.3.tar.gz" sha512sums="75efa9117edcbfd4f79a449e20ab2da480c8f63959bbec9d85516a517b095b318cce704a4043b6df728a50ae0852e9e5e33e7baefe595794df0dc854119bb0e5 wget-1.16.3.tar.gz"