summaryrefslogtreecommitdiff
path: root/templates/wget
diff options
context:
space:
mode:
Diffstat (limited to 'templates/wget')
-rw-r--r--templates/wget/template36
1 files changed, 36 insertions, 0 deletions
diff --git a/templates/wget/template b/templates/wget/template
new file mode 100644
index 0000000..a3b0afb
--- /dev/null
+++ b/templates/wget/template
@@ -0,0 +1,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
+}