#!/bin/sh
cat /dev/null > /tmp/SeTnewtag
dialog --title "Select pkgs from ext(Advanced System Libraries)"   --checklist "Select packages to install from ext series. Use cursor up/down to select the package, mark(*) by space key. Push Enter to start install." 24 72 15 "OpenBLAS" "OpenBLAS library " "on" \
"PyQt5_gpl" "Python-Qt5" "on" \
"PyQt5_sip" "sip for Python-Qt5" "on" \
"accountsservice" "a daemon that manipulates user account information" "on" \
"acpid" "acpid - Advanced Configuration and Power Interface event daemon" "on" \
"at" "at" "on" \
"autofs" "autofs" "on" \
"bind_tools" "Tools for DNS" "on" \
"blueman" "Blueman (Graphical Bluetooth Manager)" "on" \
"bluetooth_autoconnect" "CLI tool to connect bluetooth devices " "on" \
"bluez" "e_title" "on" \
"cabextract" "CAB archive extractor" "on" \
"certifi" "Root Certificates for Python" "on" \
"chardet" "Chardet: The Universal Character Encoding Detector" "on" \
"cifs_utils" "e_title" "on" \
"clisp" "Common LISP" "on" \
"dbus_glib" "D-Bus glib binding" "on" \
"dbus_python" "e_title" "on" \
"dconf" "DConf config system" "on" \
"dconf_editor" "GUI editor for glib/dconf database" "on" \
"desktop_file_utils" "Desktop file utilities for desktop-entry spec" "on" \
"ell" "Embedded Linux Library: ell" "on" \
"ffmpegthumbnailer" "video files thumbnailer using ffmpeg " "on" \
"fmt" "formatting and printing library" "on" \
"fortune_mod" "provides fortune cookies on demand" "on" \
"fuse3" "Filesystem in User space (Ver.3)" "on" \
"gcr" "GNOME crypt service" "on" \
"gcr4" "GNOME crypt service V4" "on" \
"gdl" "GDL:Gnome Docking Library" "on" \
"glad" "Vulkan/GL/GLES/EGL/GLX/WGL Loader-Generator" "on" \
"glib_networking" "network module for glib" "on" \
"gnome_common" "Macros for GNOME" "on" \
"gsettings_desktop_schemas" "e_title" "on" \
"gtk_doc" "Document tools for Gtk" "on" \
"gtksourceview" "GTK+ syntax highlighting widget" "on" \
"gtksourceview4" "gtksourceview V4" "on" \
"gvfs" "GVFS Virtual File system" "on" \
"icon_naming_utils" "icon naming utilities" "on" \
"idna" "Internationalized Domain Names in Applications" "on" \
"imagemagick7" "ImageMagick 7" "on" \
"intel_gmmlib" "Graphics Memory Management Library for Intel Graphics" "on" \
"inxi" "inxi: a command line system information tool" "on" \
"lapack" "LAPACK linear equations solver" "on" \
"lftp" "e_title" "on" \
"libcloudproviders" "libcloudprovider API " "on" \
"libgphoto2" "libgphoto2: library for digital photography" "on" \
"libgtop" "GNOME top libraries" "on" \
"libmtp" "e_title" "on" \
"libsecret" "GObject library for Secret Service API" "on" \
"libsoup" "HTTP client/server library" "on" \
"libsoup3" "HTTP client/server library libsoup ver.3" "on" \
"libunique" "libunique" "on" \
"mlocate" "e_title" "on" \
"ntfs_3g" "NTTFS-3g: Tuxera's NTFS implementation" "on" \
"numpy" "scientific computing module for Python" "on" \
"nvme_cli" "NVM-Express user space tooling for Linux." "on" \
"obconf" "OpenBox Config tool" "on" \
"openbox" "OpenBox Window Manager" "on" \
"openldap" "e_title" "on" \
"perl_XML_Simple" "Simple XML perser for Perl" "on" \
"perl_append" "add-on modules for perl" "on" \
"pinentry" "PIN entry kit, pinentry" "on" \
"polkit_gnome" "e_title" "on" \
"pygobject3" "Gtk+-3 GObject module" "on" \
"python_jinja2" "jinja templating engine for Python " "on" \
"python_prctl" "Python wrapper for linux prctl function" "on" \
"pyxdg" "Python-XDG" "on" \
"qt5_styleplugins" "Additional style plugins for Qt" "on" \
"qt5ct" "Qt5 Configuration Tool" "on" \
"recode" "character set conversion utility recode" "on" \
"requests" "HTTP requests module for Python2/3 " "on" \
"samba" "e_title" "on" \
"scour" "SVG optimizer/cleaner" "on" \
"seahorse" "passwords and encryption keys manager Seahorse" "on" \
"sip" "Python-Sip" "on" \
"smartmontools" "S.M.A.R.T. Monitoring tools" "on" \
"strace" "System call tracer" "on" \
"suitesparse" "suite of sparse matrix algorithms" "on" \
"udisks2" "e_title" "on" \
"unrar" "RAR decompressor" "on" \
"upower" "Power Management tool" "on" \
"urllib3" "urllib3 for Python" "on" \
"usbutils" "usbutils" "on" \
"vte" "Virtual Terminal Emulator" "on" \
"xdg_user_dirs" "xdg-user-dirs" "on" \
"xdg_utils" "xdg desktop utility" "on" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
  rm -f /tmp/SeTpkgs
  > /tmp/SeTnewtag
  for pkg in OpenBLAS PyQt5_gpl PyQt5_sip accountsservice acpid at autofs bind_tools blueman bluetooth_autoconnect bluez cabextract certifi chardet cifs_utils clisp dbus_glib dbus_python dconf dconf_editor desktop_file_utils ell ffmpegthumbnailer fmt fortune_mod fuse3 gcr gcr4 gdl glad glib_networking gnome_common gsettings_desktop_schemas gtk_doc gtksourceview gtksourceview4 gvfs icon_naming_utils idna imagemagick7 intel_gmmlib inxi lapack lftp libcloudproviders libgphoto2 libgtop libmtp libsecret libsoup libsoup3 libunique mlocate ntfs_3g numpy nvme_cli obconf openbox openldap perl_XML_Simple perl_append pinentry polkit_gnome pygobject3 python_jinja2 python_prctl pyxdg qt5_styleplugins qt5ct recode requests samba scour seahorse sip smartmontools strace suitesparse udisks2 unrar upower urllib3 usbutils vte xdg_user_dirs xdg_utils  ; do 
  echo "$pkg: SKP" >> /tmp/SeTnewtag
  done
  exit
fi
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in OpenBLAS PyQt5_gpl PyQt5_sip accountsservice acpid at autofs bind_tools blueman bluetooth_autoconnect bluez cabextract certifi chardet cifs_utils clisp dbus_glib dbus_python dconf dconf_editor desktop_file_utils ell ffmpegthumbnailer fmt fortune_mod fuse3 gcr gcr4 gdl glad glib_networking gnome_common gsettings_desktop_schemas gtk_doc gtksourceview gtksourceview4 gvfs icon_naming_utils idna imagemagick7 intel_gmmlib inxi lapack lftp libcloudproviders libgphoto2 libgtop libmtp libsecret libsoup libsoup3 libunique mlocate ntfs_3g numpy nvme_cli obconf openbox openldap perl_XML_Simple perl_append pinentry polkit_gnome pygobject3 python_jinja2 python_prctl pyxdg qt5_styleplugins qt5ct recode requests samba scour seahorse sip smartmontools strace suitesparse udisks2 unrar upower urllib3 usbutils vte xdg_user_dirs xdg_utils ; do
    if grep "$PACKAGE" /tmp/SeTpkgs 1> /dev/null 2> /dev/null ; then
        echo "$PACKAGE: ADD" >> /tmp/SeTnewtag
    else echo "$PACKAGE: SKP" >> /tmp/SeTnewtag
    fi
done
rm -f /tmp/SeTpkgs

