| 1 | TERMUX_PKG_HOMEPAGE=https://packages.debian.org/dpkg |
| 2 | TERMUX_PKG_DESCRIPTION="Debian package management system" |
| 3 | TERMUX_PKG_VERSION=1.18.24 |
| 4 | TERMUX_PKG_SRCURL=https://mirrors.kernel.org/debian/pool/main/d/dpkg/dpkg_${TERMUX_PKG_VERSION}.tar.xz |
| 5 | TERMUX_PKG_SHA256=d853081d3e06bfd46a227056e591f094e42e78fa8a5793b0093bad30b710d7b4 |
| 6 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" |
| 7 | ac_cv_lib_selinux_setexecfilecon=no |
| 8 | --disable-dselect |
| 9 | --disable-largefile |
| 10 | --disable-shared |
| 11 | --disable-start-stop-daemon |
| 12 | --disable-update-alternatives |
| 13 | dpkg_cv_c99_snprintf=yes |
| 14 | HAVE_SETEXECFILECON_FALSE=# |
| 15 | --host=${TERMUX_ARCH}-linux |
| 16 | --without-libbz2 |
| 17 | --without-selinux |
| 18 | " |
| 19 | TERMUX_PKG_RM_AFTER_INSTALL=" |
| 20 | bin/dpkg-architecture |
| 21 | bin/dpkg-buildflags |
| 22 | bin/dpkg-buildpackage |
| 23 | bin/dpkg-checkbuilddeps |
| 24 | bin/dpkg-distaddfile |
| 25 | bin/dpkg-genchanges |
| 26 | bin/dpkg-gencontrol |
| 27 | bin/dpkg-gensymbols |
| 28 | bin/dpkg-maintscript-helper |
| 29 | bin/dpkg-mergechangelogs |
| 30 | bin/dpkg-name |
| 31 | bin/dpkg-parsechangelog |
| 32 | bin/dpkg-scanpackages |
| 33 | bin/dpkg-scansources |
| 34 | bin/dpkg-shlibdeps |
| 35 | bin/dpkg-source |
| 36 | bin/dpkg-statoverride |
| 37 | bin/dpkg-vendor |
| 38 | lib/dpkg/parsechangelog |
| 39 | lib/perl5 |
| 40 | share/dpkg |
| 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 |
| 59 | share/man/man3 |
| 60 | share/man/man5 |
| 61 | share/perl5 |
| 62 | " |
| 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 |
| 66 | |
| 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 |
| 70 | } |