#!/bin/sh
cat /dev/null > /tmp/SeTnewtag
dialog --title "Select pkgs from libs(Basic System Libraries)"   --checklist "Select packages to install from libs series. Use cursor up/down to select the package, mark(*) by space key. Push Enter to start install." 24 72 15 "PyStemmer" "Python module for snowball stemming library" "on" \
"alsa_lib" "ALSA library" "on" \
"appstream" "AppStream makes machine-readable software metadata easily accessible." "on" \
"apr" "Apache Portable Runtime library" "on" \
"apr_util" "APR Utils" "on" \
"argon2" "Argon2 hash generator" "on" \
"aspell" "Advanced ispell" "on" \
"aspell6_en" "Aspell dictionary" "on" \
"babl" "e_title" "on" \
"boost" "e_title" "on" \
"brotli" "brotli generic-purpose lossless compression" "on" \
"c_ares" "Asynchronous DNS requests Library" "on" \
"cryptsetup" "configures encrypted block devices" "on" \
"dmraid" "Device mapper RAID interface" "on" \
"double_conversion" "double-conversion provides binary-decimal and decimal-binary routines for IEEE doubles." "on" \
"duktape" "duktape ECMAScript E5/E5.1 engine" "on" \
"enchant2" "Enchant spell check library ver.2" "on" \
"exiv2" "exiv2" "on" \
"fftw" "e_title" "on" \
"fontconfig" "TrueType fonts configration tool" "on" \
"freetype" "freetype library" "on" \
"fribidi" "fribidi library" "on" \
"gexiv2" "GObject wrapper for exiv2" "on" \
"glib" "GTK+ Basic Routines Library" "on" \
"glibmm" "C++ binding for Glib" "on" \
"glibmm1" "C++ binding for Glib, older version" "on" \
"gmime3" "MIME library" "on" \
"gobject_introspection" "GObject API information collector" "on" \
"gperftools" "TCMalloc library" "on" \
"graphite2" "Graphite, programmable Unicode-compliant smart-font technology" "on" \
"gsl" "e_title" "on" \
"gsm" "e_title" "on" \
"gspell" "spell checking library for GTK3 apps. " "on" \
"harfbuzz" "OpenType text shaping engine" "on" \
"icu" "library for UNICODE handling" "on" \
"icu70" "library for UNICODE handling, ver.70" "on" \
"ijs" "e_title" "on" \
"iniparser" "ini file parsing library" "on" \
"iso_codes" "ISO code collection" "on" \
"jansson" "C library for handling JSON data" "on" \
"jasper" "jasper library" "on" \
"json_c" "C-JSON" "on" \
"json_glib" "JSON-Glib binding" "on" \
"lcms2" "LittleCMS v2" "on" \
"libarchive" "libarchive" "on" \
"libatasmart" "ATA S.M.A.R.T library" "on" \
"libblockdev" "C Library for block devices" "on" \
"libbytesize" "library for bytes sizes operations" "on" \
"libcddb" "CDDB access library" "on" \
"libcdio" "libcdio" "on" \
"libcdio_paranoia" "libcdio + cd paranoia tool" "on" \
"libcdr" "library for Corel DRAW data import" "on" \
"libcroco" "CSS parser library" "on" \
"libdaemon" "library for daemon software" "on" \
"libdisplay_info" "EDID and DisplayID library" "on" \
"libexif" "libexif" "on" \
"libfyaml" "A fancy 1.2 YAML and JSON parser/writer." "on" \
"libgsf" "e_title" "on" \
"libgudev" "udev binding for GObject" "on" \
"libgusb" "Libgusb: GObject wrappers for libusb-1.0" "on" \
"libical" "libical: schedule management library" "on" \
"libiec61883" "implementation of IEC61883" "on" \
"libieee1284" "library for IEEE1284" "on" \
"libjpeg_turbo" "library for JPEG data" "on" \
"libmng" "e_title" "on" \
"libnvme" "C library for handling NVMe specifications" "on" \
"libpaper" "Library for paper size" "on" \
"libpaper1" "Library for paper size, older version for compat." "on" \
"libpng" "PNG library" "on" \
"libproxy" "libproxy" "on" \
"libraw" "Library for manipulating RAW files" "on" \
"libraw1394" "IEEE1394 raw device library" "on" \
"librevenge" "librevenge: library for writing import filters" "on" \
"libsass" "C implementation of Sass CSS preprocessor (library)" "on" \
"libseccomp" "Library for kernel's seccomp functions" "on" \
"libsigc++" "Signal handling library" "on" \
"libsigc++3" "Signal handling library V3" "on" \
"libsigsegv" "Segv signal handling library" "on" \
"libsodium" "A modern, portable, easy to use crypto library." "on" \
"libtraceevent" "kernel trace event library  " "on" \
"libtracefs" "trace filesystem library" "on" \
"libunwind" "libunwind call-chain manipulation library" "on" \
"libusb" "Userspace application to USB devices" "on" \
"libusb_compat" "libusb-compat library" "on" \
"libutempter" "utmp handling library" "on" \
"libvisio" "library for imports MS Visio diagrams" "on" \
"libvpx" "libvpx: WebM codec library" "on" \
"libwebp" "Library for WebP" "on" \
"libwpd" "library for imports WordPerfect Documents" "on" \
"libwpg" "library for imports WordPerfect Graphics" "on" \
"libxslt" "libxslt" "on" \
"libzip" "library for zip archives" "on" \
"lmdb" "lmdb: Lightning Memory-Mapped Database" "on" \
"ndctl" "libnvdimm managing library" "on" \
"neon" "e_title" "on" \
"newt" "Newt user interfaces library" "on" \
"nftables" "A new package filtering framework" "on" \
"nghttp2" "HTTP/2 C Library nghttp2" "on" \
"nlohmann_json" "JSON for Modern C++" "on" \
"node" "Node.js JavaScript environments" "on" \
"nspr" "NSPR(NetScape Portable Runtime)library" "on" \
"nss" "NSS(Network Security Service)library" "on" \
"oniguruma" "Regular expressions library, oniguruma" "on" \
"openjpeg2" "Library for JPEG 2000" "on" \
"pcre2" "Perl Compatible Regex library v2" "on" \
"pgrep" "Perl-regep grep" "on" \
"potrace" "e_title" "on" \
"python_lxml" "XML/HTML toolkit for Python2" "on" \
"qpdf" "e_title" "on" \
"sassc" "C implementation of Sass CSS preprocessor" "on" \
"seatd" "A minimal seat management daemon, and a universal seat management library." "on" \
"snowball" "snowball stemming library" "on" \
"talloc" "e_title" "on" \
"tdb" "e_title" "on" \
"tiff" "TIFF library" "on" \
"uchardet" "encoding detector library" "on" \
"vala" "Vala GObject handling language" "on" \
"volume_key" "Library for manipulating storage volume encryption keys" "on" \
"wasi_compiler_rt" "" "on" \
"wasi_libc" "libc for WebAssembly programs " "on" \
"wasi_libc++" "libc++ for WebAssembly programs " "on" \
"wayland" "Wayland, the next generation display server" "on" \
"wayland_protocols" "Protocols for Wayland" "on" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
  rm -f /tmp/SeTpkgs
  > /tmp/SeTnewtag
  for pkg in PyStemmer alsa_lib appstream apr apr_util argon2 aspell aspell6_en babl boost brotli c_ares cryptsetup dmraid double_conversion duktape enchant2 exiv2 fftw fontconfig freetype fribidi gexiv2 glib glibmm glibmm1 gmime3 gobject_introspection gperftools graphite2 gsl gsm gspell harfbuzz icu icu70 ijs iniparser iso_codes jansson jasper json_c json_glib lcms2 libarchive libatasmart libblockdev libbytesize libcddb libcdio libcdio_paranoia libcdr libcroco libdaemon libdisplay_info libexif libfyaml libgsf libgudev libgusb libical libiec61883 libieee1284 libjpeg_turbo libmng libnvme libpaper libpaper1 libpng libproxy libraw libraw1394 librevenge libsass libseccomp libsigc++ libsigc++3 libsigsegv libsodium libtraceevent libtracefs libunwind libusb libusb_compat libutempter libvisio libvpx libwebp libwpd libwpg libxslt libzip lmdb ndctl neon newt nftables nghttp2 nlohmann_json node nspr nss oniguruma openjpeg2 pcre2 pgrep potrace python_lxml qpdf sassc seatd snowball talloc tdb tiff uchardet vala volume_key wasi_compiler_rt wasi_libc wasi_libc++ wayland wayland_protocols  ; do 
  echo "$pkg: SKP" >> /tmp/SeTnewtag
  done
  exit
fi
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in PyStemmer alsa_lib appstream apr apr_util argon2 aspell aspell6_en babl boost brotli c_ares cryptsetup dmraid double_conversion duktape enchant2 exiv2 fftw fontconfig freetype fribidi gexiv2 glib glibmm glibmm1 gmime3 gobject_introspection gperftools graphite2 gsl gsm gspell harfbuzz icu icu70 ijs iniparser iso_codes jansson jasper json_c json_glib lcms2 libarchive libatasmart libblockdev libbytesize libcddb libcdio libcdio_paranoia libcdr libcroco libdaemon libdisplay_info libexif libfyaml libgsf libgudev libgusb libical libiec61883 libieee1284 libjpeg_turbo libmng libnvme libpaper libpaper1 libpng libproxy libraw libraw1394 librevenge libsass libseccomp libsigc++ libsigc++3 libsigsegv libsodium libtraceevent libtracefs libunwind libusb libusb_compat libutempter libvisio libvpx libwebp libwpd libwpg libxslt libzip lmdb ndctl neon newt nftables nghttp2 nlohmann_json node nspr nss oniguruma openjpeg2 pcre2 pgrep potrace python_lxml qpdf sassc seatd snowball talloc tdb tiff uchardet vala volume_key wasi_compiler_rt wasi_libc wasi_libc++ wayland wayland_protocols ; 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

