blob: 9f6cd034e63f9426d205839068c7d85b8661a6d9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=wget
pkgver=1.16
pkgrel=0
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="wget.post-deinstall"
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="293a37977c41b5522f781d3a3a078426 wget-1.16.tar.gz"
sha256sums="b977fc10ac7a72d987d48136251aeb332f2dced1aabd50d6d56bdf72e2b79101 wget-1.16.tar.gz"
sha512sums="e5a0196d3022b0354865d4bd7e87da1bebaedec3cf3bc39201bf6cb1a9d950ea51712bf76b2c0d227d4baa01b2fa532ed2a4e69a09162822383982024d07ba3d wget-1.16.tar.gz"
|