dpkg: provide basic /var/lib/dpkg directory structure inside package

Previously was provided only through bootstrap archive.
This commit is contained in:
Leonid Pliushch 2019-08-10 02:33:26 +03:00
parent 13f0811d76
commit a1721cc1ac
1 changed files with 7 additions and 0 deletions

View File

@ -73,3 +73,10 @@ termux_step_pre_configure() {
export TAR=tar # To make sure dpkg tries to use "tar" instead of e.g. "gnutar" (which happens when building on OS X)
perl -p -i -e "s/TERMUX_ARCH/$TERMUX_ARCH/" $TERMUX_PKG_SRCDIR/configure
}
termux_step_post_massage() {
mkdir -p "${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/var/lib/dpkg/alternatives"
mkdir -p "${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/var/lib/dpkg/info"
mkdir -p "${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/var/lib/dpkg/triggers"
mkdir -p "${TERMUX_PKG_MASSAGEDIR}/${TERMUX_PREFIX}/var/lib/dpkg/updates"
}