Browse Source

apk-tools: provide necessary files & dirs

android-5
Leonid Plyushch 6 years ago
committed by Fredrik Fornwall
parent
commit
4a19fa2d88
  1. 21
      disabled-packages/apk-tools/build.sh

21
disabled-packages/apk-tools/build.sh

@ -12,9 +12,24 @@ termux_step_post_make_install() {
mkdir -p $TERMUX_PREFIX/etc/apk/ mkdir -p $TERMUX_PREFIX/etc/apk/
echo $TERMUX_ARCH > $TERMUX_PREFIX/etc/apk/arch echo $TERMUX_ARCH > $TERMUX_PREFIX/etc/apk/arch
mkdir -p $TERMUX_PREFIX/lib/apk/db/
echo "Needed by the apk tool." > $TERMUX_PREFIX/lib/apk/db/README
echo "https://termux.net/apk/main" > $TERMUX_PREFIX/etc/apk/repositories echo "https://termux.net/apk/main" > $TERMUX_PREFIX/etc/apk/repositories
} }
termux_step_post_massage() {
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/etc/apk/keys"
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/etc/apk/protected_paths.d"
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/lib/apk/db/"
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/var/cache/apk"
ln -sfr \
"$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/var/cache/apk" \
"$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/etc/apk/cache"
}
termux_step_create_debscripts() {
{
echo "#!$TERMUX_PREFIX/bin/sh"
echo "touch $TERMUX_PREFIX/etc/apk/world"
} > ./postinst
chmod 755 postinst
}

Loading…
Cancel
Save