From 99fb4650cc3fd813b2951ec583f81a2466af4c64 Mon Sep 17 00:00:00 2001 From: Stas Sergeev Date: Thu, 9 Jan 2025 11:31:42 +0300 Subject: [PATCH] instfd: add deb postinst It appears termux doesn't automatically handle python deps... Add postinst debscript manually. --- tur/instfd/build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tur/instfd/build.sh b/tur/instfd/build.sh index 39138349f..427b92324 100644 --- a/tur/instfd/build.sh +++ b/tur/instfd/build.sh @@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="FreeDOS installed for dosemu2" TERMUX_PKG_LICENSE="GPL-3.0" TERMUX_PKG_MAINTAINER="@stsp" TERMUX_PKG_VERSION=0.3 +TERMUX_PKG_REVISION=1 TERMUX_PKG_SRCURL=https://github.com/dosemu2/install-freedos/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz TERMUX_PKG_SHA256=aeade1ec86902df35e0926f802319b625de8fafac33fe834a286b3fe971a086f TERMUX_PKG_AUTO_UPDATE=true @@ -12,3 +13,12 @@ TERMUX_PKG_PYTHON_TARGET_DEPS="tqdm" termux_step_make_install() { make -C $TERMUX_PKG_SRCDIR install } + +termux_step_create_debscripts() { + cat <<- EOF > ./postinst + #!$TERMUX_PREFIX/bin/sh + echo "Installing dependencies through pip. This may take a while..." + pip3 install ${TERMUX_PKG_PYTHON_TARGET_DEPS//, / } + EOF + chmod +x ./postinst +}