summaryrefslogtreecommitdiff
path: root/templates/wget/template
blob: a3b0afbb4ff9a5581702a38c7a57820ba9c9ae37 (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
pkgname=wget
version=2.2.1
build_no=1
upstream="https://ftp.gnu.org/gnu/wget/wget2-${version}.tar.gz"
cddir="wget2-${version}"

makedepends=(openssl)
depends=(openssl)

function do_configure {
	mkdir build/
	cd build/
	
	conf_flags=(
		--prefix=/usr
		--host=${DISTRO_TC}
		--enable-threads=posix
		--disable-rpath
		--enable-shared
		--disable-nls
		--with-openssl
	)

	../configure "${conf_flags[@]}"
}

function do_build {
	cd build/
	make -j$(nproc)
}

function do_install {
	cd build/
	make DESTDIR=${DESTDIR} install
	ln -s ${DESTDIR}/usr/bin/wget2 ${DESTDIR}/usr/bin/wget
}