aboutsummaryrefslogtreecommitdiffstats
path: root/main/wget/APKBUILD
blob: 71550e47942c2c9edb3e64de587178d6b648568d (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname=wget
pkgver=1.12
pkgrel=4
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"
subpackages="$pkgname-doc"
install="wget.post-deinstall"
source="ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz
	wget-1.12-CVE-2010-2252.patch"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$srcdir/$pkgname-$pkgver"

	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-nls
	make || return 1
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install
}

md5sums="141461b9c04e454dc8933c9d1f2abf83  wget-1.12.tar.gz
03d0dc81b22dea62ddcd8409906cb685  wget-1.12-CVE-2010-2252.patch"