diff -uNr pacman-6.0.0/etc/makepkg.conf.in pacman-termux/etc/makepkg.conf.in
--- pacman-6.0.0/etc/makepkg.conf.in	2021-05-20 06:38:45.938120000 +0300
+++ pacman-termux/etc/makepkg.conf.in	2021-10-04 16:00:39.000000000 +0300
@@ -9,17 +9,17 @@
 #
 #-- The download utilities that makepkg should use to acquire sources
 #  Format: 'protocol::agent'
-DLAGENTS=('file::/usr/bin/curl -gqC - -o %o %u'
-          'ftp::/usr/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
-          'http::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
-          'https::/usr/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
-          'rsync::/usr/bin/rsync --no-motd -z %u %o'
-          'scp::/usr/bin/scp -C %u %o')
+DLAGENTS=('file::@TERMUX_PREFIX@/bin/curl -gqC - -o %o %u'
+          'ftp::@TERMUX_PREFIX@/bin/curl -gqfC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
+          'http::@TERMUX_PREFIX@/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
+          'https::@TERMUX_PREFIX@/bin/curl -gqb "" -fLC - --retry 3 --retry-delay 3 -o %o %u'
+          'rsync::@TERMUX_PREFIX@/bin/rsync --no-motd -z %u %o'
+          'scp::@TERMUX_PREFIX@/bin/scp -C %u %o')
 
 # Other common tools:
-# /usr/bin/snarf
-# /usr/bin/lftpget -c
-# /usr/bin/wget
+# @TERMUX_PREFIX@/bin/snarf
+# @TERMUX_PREFIX@/bin/lftpget -c0
+# @TERMUX_PREFIX@/bin/wget
 
 #-- The package required by makepkg to download VCS sources
 #  Format: 'protocol::package'
@@ -92,7 +92,7 @@
 OPTIONS=(strip docs libtool staticlibs emptydirs zipman purge !debug !lto)
 
 #-- File integrity checks to use. Valid: ck, md5, sha1, sha224, sha256, sha384, sha512, b2
-INTEGRITY_CHECK=(ck)
+INTEGRITY_CHECK=(sha256)
 #-- Options to be used when stripping binaries. See `man strip' for details.
 STRIP_BINARIES="@STRIP_BINARIES@"
 #-- Options to be used when stripping shared libraries. See `man strip' for details.
@@ -106,7 +106,7 @@
 #-- Files to be removed from all packages (if purge is specified)
 PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)
 #-- Directory to store source code in for debug packages
-DBGSRCDIR="/usr/src/debug"
+DBGSRCDIR="@TERMUX_PREFIX@/src/debug"
 
 #########################################################################
 # PACKAGE OUTPUT