# HG changeset patch # User Hans-G?nter Theisgen # Date 1581327559 -3600 # Node ID 49bbb4b9da3cde1ef0b45ae4b6de222ac01d9026 # Parent 75868251b11749ab4866d6028ee8e29ba8959c40 modified get-flash-plugin diff -r 75868251b117 -r 49bbb4b9da3c get-algobox/stuff/get-algobox --- a/get-algobox/stuff/get-algobox Sun Feb 09 16:49:37 2020 +0100 +++ b/get-algobox/stuff/get-algobox Mon Feb 10 10:39:19 2020 +0100 @@ -4,7 +4,7 @@ # # (C) 2020 SliTaz - GNU General Public License v3. # Author : unknown -# modified by HGT on 2020-01-28 +# modified by HGT on 2020-02-10 # # === Initialisations === @@ -59,7 +59,8 @@ [ -z "$keep" ] && keep="no" # Directory for temporary files -[ -z "$tempdir" ] && TMP_DIR="/tmp/get-$PACKAGE" +TMP_DIR="$tmpdir" +[ -z "$tmpdir" ] && TMP_DIR="/tmp/get-$PACKAGE" # Logging file (unused by now) LOG=$TMP_DIR/get-$PACKAGE.log @@ -77,7 +78,7 @@ separator; newline # === Remove package, if installed === -if [ is_installed ] +if is_installed then action "Removing installed version..." tazpkg remove $PACKAGE --root="$root/" diff -r 75868251b117 -r 49bbb4b9da3c get-bitcoin/stuff/get-bitcoin --- a/get-bitcoin/stuff/get-bitcoin Sun Feb 09 16:49:37 2020 +0100 +++ b/get-bitcoin/stuff/get-bitcoin Mon Feb 10 10:39:19 2020 +0100 @@ -4,7 +4,7 @@ # # (C) 2020 SliTaz - GNU General Public License v3. # Author : unknown -# modified by HGT on 2020-01-29 +# modified by HGT on 2020-02-10 # # === Initialisations === @@ -60,7 +60,8 @@ [ -z "$keep" ] && keep="no" # Directory for temporary files -[ -z "$tempdir" ] && TMP_DIR="/tmp/get-$PACKAGE" +TMP_DIR="$tmpdir" +[ -z "$tmpdir" ] && TMP_DIR="/tmp/get-$PACKAGE" # Logging file (unused by now) LOG=$TMP_DIR/get-$PACKAGE.log @@ -78,7 +79,7 @@ separator; newline # === Remove package, if installed === -if [ is_installed ] +if is_installed then action "Removing installed version..." tazpkg remove $PACKAGE --root="$root/" diff -r 75868251b117 -r 49bbb4b9da3c get-community-backgrounds/stuff/get-community-backgrounds --- a/get-community-backgrounds/stuff/get-community-backgrounds Sun Feb 09 16:49:37 2020 +0100 +++ b/get-community-backgrounds/stuff/get-community-backgrounds Mon Feb 10 10:39:19 2020 +0100 @@ -4,7 +4,7 @@ # # (C) 2020 SliTaz - GNU General Public License v3. # Author : Leonardo Laporte -# modified by HGT on 2020-01-29 +# modified by HGT on 2020-02-10 # # === Initialisations === @@ -61,7 +61,8 @@ [ -z "$keep" ] && keep="no" # Directory for temporary files -[ -z "$tempdir" ] && TMP_DIR="/tmp/get-$PACKAGE" +TMP_DIR="$tmpdir" +[ -z "$tmpdir" ] && TMP_DIR="/tmp/get-$PACKAGE" # Logging file (unused by now) LOG=$TMP_DIR/get-$PACKAGE.log @@ -79,7 +80,7 @@ newline # === Remove package, if installed === -if [ is_installed ] +if is_installed then action "Removing installed version..." newline diff -r 75868251b117 -r 49bbb4b9da3c get-dropbox/stuff/get-dropbox --- a/get-dropbox/stuff/get-dropbox Sun Feb 09 16:49:37 2020 +0100 +++ b/get-dropbox/stuff/get-dropbox Mon Feb 10 10:39:19 2020 +0100 @@ -4,7 +4,7 @@ # # (C) 2020 SliTaz - GNU General Public License v3. # Author : unknown -# modified by HGT on 2020-02-07 +# modified by HGT on 2020-02-10 # # === Initialisations === @@ -59,7 +59,8 @@ [ -z "$keep" ] && keep="no" # Directory for temporary files -[ -z "$tempdir" ] && TMP_DIR="/tmp/get-$PACKAGE" +TMP_DIR="$tmpdir" +[ -z "$tmpdir" ] && TMP_DIR="/tmp/get-$PACKAGE" # Logging file (unused by now) LOG=$TMP_DIR/get-$PACKAGE.log @@ -76,7 +77,7 @@ separator; newline # === Remove package, if installed === -if [ is_installed ] +if is_installed then action "Removing installed version..." tazpkg remove $PACKAGE --root="$root/" diff -r 75868251b117 -r 49bbb4b9da3c get-e-uae/stuff/get-e-uae --- a/get-e-uae/stuff/get-e-uae Sun Feb 09 16:49:37 2020 +0100 +++ b/get-e-uae/stuff/get-e-uae Mon Feb 10 10:39:19 2020 +0100 @@ -2,9 +2,10 @@ # # get-e-uae - create and install SliTaz package e-uae # -# (C) 2019 SliTaz - GNU General Public License v3. +# (C) 2020 SliTaz - GNU General Public License v3. # Author : HGT # created: 2019-10-24 +# modified by HGT on 2020-02-08 # # === Initialisations === @@ -59,10 +60,12 @@ [ -z "$keep" ] && keep="no" # Directory for temporary files -[ -z "$tempdir" ] && TMP_DIR="/tmp/get-$PACKAGE" +TMP_DIR=$tmpdir +[ -z "$tmpdir" ] && TMP_DIR="/tmp/get-$PACKAGE" # Logging file (unused by now) -LOG=$TMP_DIR/get-$PACKAGE.log +LOG=$logging_file +[ -z "$logging_file" ] && LOG=$TMP_DIR/get-$PACKAGE.log cat < + --root= + --install=yes|no + --keep=no|yes + --tmpdir=" + exit fi -if [ -d $ROOT$INSTALLED/$PACKAGE ]; then - [ -n "$ROOT" ] && exit 1 - tazpkg remove $PACKAGE - [ -d $INSTALLED/$PACKAGE ] && exit 1 -fi -VERSION="$(wget -q -O - http://www.adobe.com/software/flash/about/ | sed -n '/Linux/,/<\/tr/s/[^>]*>\([0-9].*\)<.*/\1/p')" -TARBALL="flash_player_npapi_linux.i386.tar.gz" -URL="https://fpdownload.adobe.com/get/flashplayer/pdc/$VERSION/$TARBALL" -TMP_DIR="$(mktemp -d)" -CUR_DIR=$(pwd) -cd $TMP_DIR -wget --no-check-certificate -O $TARBALL $URL +# Check for system administrator privileges +check_root -if [ ! -f $TARBALL ]; then - echo "Could not download $TARBALL. Exiting." - exit 1 +title "Package $PACKAGE will be build as SliTaz package and installed" + +# Fetch latest version, unless version is set by option --version +[ -z "$version" ] && version="latest" + +# Install SliTaz package, unless inhibited by option --install=no +[ -z "$install" ] && install="yes" + +# Delete SliTaz package file $PACKAGE-$VERSION.tazpkg after installation, +# unless option --keep=yes is given +[ -z "$keep" ] && keep="no" + +# Directory for temporary files +TMP_DIR="$tmpdir" +[ -z "$tmpdir" ] && TMP_DIR="/tmp/get-$PACKAGE" + +# Logging file (unused by now) +LOG=$TMP_DIR/get-$PACKAGE.log + +cat < $PACKAGE-$VERSION/receipt < receipt <