From 022100b226a3d0ff47c1142220c7ce3495879565 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Mon, 23 Jul 2018 14:13:33 +0200 Subject: [PATCH] Replace curl call with termux_download --- packages/fortune/build.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/fortune/build.sh b/packages/fortune/build.sh index 147d52eae..0bdd8b605 100644 --- a/packages/fortune/build.sh +++ b/packages/fortune/build.sh @@ -11,14 +11,18 @@ termux_step_make_install () { cp debian/fortune.6 $TERMUX_PREFIX/share/man/man6/ local TARFILE=$TERMUX_PKG_CACHEDIR/f.tar.gz - if [ ! -f $TARFILE ]; then - curl --retry 3 -L -o $TARFILE http://http.debian.net/debian/pool/main/f/fortune-mod/fortune-mod_1.99.1.orig.tar.gz - fi + termux_download \ + http://http.debian.net/debian/pool/main/f/fortune-mod/fortune-mod_1.99.1.orig.tar.gz \ + $TARFILE \ + fc51aee1f73c936c885f4e0f8b6b48f4f68103e3896eaddc6a45d2b71e14eace + cd $TERMUX_PKG_TMPDIR mkdir datfiles cd datfiles + tar xf $TARFILE cd fortune-mod-1.99.1/datfiles + rm -Rf html off Makefile mkdir -p $TERMUX_PREFIX/share/games/fortunes cp * $TERMUX_PREFIX/share/games/fortunes