Browse Source

{root,x11}-repo: Run 'apt update' in postinst

android-5
Fredrik Fornwall 6 years ago
parent
commit
dcab43f1e1
  1. 9
      packages/root-repo/build.sh
  2. 9
      packages/x11-repo/build.sh

9
packages/root-repo/build.sh

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://github.com/termux/termux-root-packages
TERMUX_PKG_DESCRIPTION="Package repository containing programs for rooted devices"
TERMUX_PKG_MAINTAINER="Henrik Grimler @Grimler91"
TERMUX_PKG_VERSION=1.0
TERMUX_PKG_VERSION=1.1
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
termux_step_make_install() {
@ -9,3 +9,10 @@ termux_step_make_install() {
echo "deb https://grimler.se root stable" > $TERMUX_PREFIX/etc/apt/sources.list.d/root.list
cp $TERMUX_PKG_BUILDER_DIR/grimler.gpg $TERMUX_PREFIX/etc/apt/trusted.gpg.d/
}
termux_step_create_debscripts () {
echo "#!$TERMUX_PREFIX/bin/sh" > postinst
echo "echo Downloading updated package list ..." >> postinst
echo "apt update" >> postinst
echo "exit 0" >> postinst
}

9
packages/x11-repo/build.sh

@ -1,7 +1,7 @@
TERMUX_PKG_HOMEPAGE=https://termux-x11.ml
TERMUX_PKG_DESCRIPTION="Package repository containing X11 programs and libraries"
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
TERMUX_PKG_VERSION=1.1
TERMUX_PKG_VERSION=1.2
TERMUX_PKG_PLATFORM_INDEPENDENT=yes
termux_step_make_install() {
@ -9,3 +9,10 @@ termux_step_make_install() {
echo "deb https://termux-x11.ml x11 main" > $TERMUX_PREFIX/etc/apt/sources.list.d/x11.list
cp $TERMUX_PKG_BUILDER_DIR/xeffyr.gpg $TERMUX_PREFIX/etc/apt/trusted.gpg.d/
}
termux_step_create_debscripts () {
echo "#!$TERMUX_PREFIX/bin/sh" > postinst
echo "echo Downloading updated package list ..." >> postinst
echo "apt update" >> postinst
echo "exit 0" >> postinst
}

Loading…
Cancel
Save