Skip to content

Commit

Permalink
gpkg/wget: new pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxython committed Oct 15, 2023
1 parent aa813fd commit e4daf0c
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
14 changes: 14 additions & 0 deletions gpkg/wget/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
TERMUX_PKG_HOMEPAGE=https://www.gnu.org/software/wget/
TERMUX_PKG_DESCRIPTION="Commandline tool for retrieving files using HTTP, HTTPS and FTP"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux-pacman"
TERMUX_PKG_VERSION=1.21.4
TERMUX_PKG_SRCURL=https://mirrors.kernel.org/gnu/wget/wget-${TERMUX_PKG_VERSION}.tar.lz
TERMUX_PKG_SHA256=3683619a5f50edcbccb1720a79006fa37bf9b9a255a8c5b48048bc3c7a874bd9
TERMUX_PKG_DEPENDS="libidn2-glibc, libuuid-glibc, openssl-glibc, pcre2-glibc, zlib-glibc, libnettle-glibc, libpsl-glibc, libgnutls-glibc"
TERMUX_PKG_CONFFILES="glibc/etc/wgetrc"
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--disable-rpath
--enable-nls
--with-ssl=gnutls
"
23 changes: 23 additions & 0 deletions gpkg/wget/tmpdir-path.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
diff -uNr wget-1.20.1/lib/tmpdir.c wget-1.20.1.mod/lib/tmpdir.c
--- wget-1.20.1/lib/tmpdir.c 2018-12-26 22:08:19.000000000 +0200
+++ wget-1.20.1.mod/lib/tmpdir.c 2019-03-01 18:27:22.434424043 +0200
@@ -36,7 +36,7 @@
# ifdef _P_tmpdir /* native Windows */
# define P_tmpdir _P_tmpdir
# else
-# define P_tmpdir "/tmp"
+# define P_tmpdir "@TERMUX_PREFIX_CLASSICAL@/tmp"
# endif
#endif

@@ -130,8 +130,8 @@
#endif
if (direxists (P_tmpdir))
dir = P_tmpdir;
- else if (strcmp (P_tmpdir, "/tmp") != 0 && direxists ("/tmp"))
- dir = "/tmp";
+ else if (strcmp (P_tmpdir, "@TERMUX_PREFIX_CLASSICAL@/tmp") != 0 && direxists ("@TERMUX_PREFIX_CLASSICAL@/tmp"))
+ dir = "@TERMUX_PREFIX_CLASSICAL@/tmp";
else
{
__set_errno (ENOENT);

0 comments on commit e4daf0c

Please sign in to comment.