1 TERMUX_PKG_HOMEPAGE
=https
://packages.debian.org
/dpkg
2 TERMUX_PKG_DESCRIPTION
="Debian package management system"
3 TERMUX_PKG_VERSION
=1.19.0.4
4 TERMUX_PKG_SRCURL
=https
://mirrors.kernel.org
/debian
/pool
/main
/d
/dpkg
/dpkg_
${TERMUX_PKG_VERSION}.
tar.xz
5 TERMUX_PKG_SHA256
=98a66bb19012f9bde848e1e02903fe411dd0b9e61921108ee4323c4167e6990a
6 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
="
7 ac_cv_lib_selinux_setexecfilecon=no
11 --disable-start-stop-daemon
12 --disable-update-alternatives
13 dpkg_cv_c99_snprintf=yes
14 HAVE_SETEXECFILECON_FALSE=#
15 --host=${TERMUX_ARCH}-linux
19 TERMUX_PKG_RM_AFTER_INSTALL
="
23 bin/dpkg-checkbuilddeps
28 bin/dpkg-maintscript-helper
29 bin/dpkg-mergechangelogs
31 bin/dpkg-parsechangelog
38 lib/dpkg/parsechangelog
41 share/man/man1/dpkg-architecture.1
42 share/man/man1/dpkg-buildflags.1
43 share/man/man1/dpkg-buildpackage.1
44 share/man/man1/dpkg-checkbuilddeps.1
45 share/man/man1/dpkg-distaddfile.1
46 share/man/man1/dpkg-genchanges.1
47 share/man/man1/dpkg-gencontrol.1
48 share/man/man1/dpkg-gensymbols.1
49 share/man/man1/dpkg-maintscript-helper.1
50 share/man/man1/dpkg-mergechangelogs.1
51 share/man/man1/dpkg-name.1
52 share/man/man1/dpkg-parsechangelog.1
53 share/man/man1/dpkg-scanpackages.1
54 share/man/man1/dpkg-scansources.1
55 share/man/man1/dpkg-shlibdeps.1
56 share/man/man1/dpkg-source.1
57 share/man/man1/dpkg-statoverride.1
58 share/man/man1/dpkg-vendor.1
63 # with the extract.c.patch we remove the -p and --warning=no-timestamp tar options so we can use busybox tar
64 TERMUX_PKG_DEPENDS
="busybox, liblzma"
65 TERMUX_PKG_ESSENTIAL
=yes
67 termux_step_pre_configure
() {
68 export TAR
=tar # To make sure dpkg tries to use "tar" instead of e.g. "gnutar" (which happens when building on OS X)
69 perl
-p
-i
-e
"s/TERMUX_ARCH/$TERMUX_ARCH/" $TERMUX_PKG_SRCDIR/configure