#!/bin/sh
cat /dev/null > /tmp/SeTnewtag
dialog --title "Select pkgs from devel(Basic Development Environment)"   --checklist "Select packages to install from devel series. Use cursor up/down to select the package, mark(*) by space key. Push Enter to start install." 24 72 15 "Mako" "Mako template engine for Python" "on" \
"Python" "OO scription language Python3" "on" \
"autoconf" "GNU Autoconf" "on" \
"autoconf213" "GNU Autoconf 2.13" "on" \
"autoconf_archive" "macro collection for GNU autoconf" "on" \
"automake" "GNU Automake" "on" \
"binutils" "GNU Binutils" "on" \
"bison" "GNU Bison" "on" \
"cbindgen" "Tool for generating C bindings for Rust code" "on" \
"check" "check, unit testing framework" "on" \
"cmake" "cmake build tool" "on" \
"cppunit" "C++ Unit test framework" "on" \
"cython" "C-Extensions for Python" "on" \
"diffutils" "Diff Utilities" "on" \
"extra_cmake_modules" "CMake extra modules" "on" \
"flex" "The Fast LEXical analyzer" "on" \
"g++" "GCC/G++ compiler" "on" \
"gcc" "GCC/C compiler" "on" \
"gdb" "GNU debugger" "on" \
"gettext" "GNU Gettext library" "on" \
"gfortran" "GCC FORTRAN" "on" \
"git" "Source code management system git" "on" \
"global" "GNU global source code tagging system" "on" \
"go" "Go programming language" "on" \
"gperf" "GNU perfect hash generator" "on" \
"help2man" "help2man man page builder" "on" \
"intltool" "GNU intltool" "on" \
"isl" "ISL, Integer Set Library" "on" \
"kernel_headers" "Linux kernel headers" "on" \
"libatomic_ops" "atomic op library" "on" \
"libc" "Glibc headers and objectse" "on" \
"libcap_static" "Libcap - Library to allow POSIX 1e capabilities" "on" \
"libtool" "GNU libtool" "on" \
"llvm" "LLVM compiler infrastructure" "on" \
"lua" "small script language Lua" "on" \
"lua52" "Lua 5.2" "on" \
"luajit" "JIT for Lua" "on" \
"m4" "M4 Macro" "on" \
"make" "Make, compile support software" "on" \
"man2html" "convert man page to HTML" "on" \
"mercurial" "e_title" "on" \
"meson" "Meson Build Sysmtem" "on" \
"mold" "Mold: A Modern Linker" "on" \
"mpc" "GNU MPC library" "on" \
"nasm" "NASM Assembler" "on" \
"ninja" "A compact build system, Ninja" "on" \
"patch" "source code modify tool" "on" \
"perl_Locale_gettext" "Locale-gettext for Perl" "on" \
"pip" "PIP for Python3" "on" \
"pkg_config" "Package Manage for build new software" "on" \
"plamobuild" "BuildScript maker for Plamo Linux" "on" \
"python3_setuptools" "Setuptools for Python2" "on" \
"python_dev" "Python development modules " "on" \
"python_six" "Python 2 and 3 compatibility utilities" "on" \
"ruby" "Ruby: Object Oriented Scripting Language" "on" \
"slang" "S-Lang interpreter" "on" \
"swig" "e_title" "on" \
"yasm" "Yasm Moduler Assembler" "on" \
2> /tmp/SeTpkgs
if [ $? = 1 -o $? = 255 ]; then
  rm -f /tmp/SeTpkgs
  > /tmp/SeTnewtag
  for pkg in Mako Python autoconf autoconf213 autoconf_archive automake binutils bison cbindgen check cmake cppunit cython diffutils extra_cmake_modules flex g++ gcc gdb gettext gfortran git global go gperf help2man intltool isl kernel_headers libatomic_ops libc libcap_static libtool llvm lua lua52 luajit m4 make man2html mercurial meson mold mpc nasm ninja patch perl_Locale_gettext pip pkg_config plamobuild python3_setuptools python_dev python_six ruby slang swig yasm  ; do 
  echo "$pkg: SKP" >> /tmp/SeTnewtag
  done
  exit
fi
cat /dev/null > /tmp/SeTnewtag
for PACKAGE in Mako Python autoconf autoconf213 autoconf_archive automake binutils bison cbindgen check cmake cppunit cython diffutils extra_cmake_modules flex g++ gcc gdb gettext gfortran git global go gperf help2man intltool isl kernel_headers libatomic_ops libc libcap_static libtool llvm lua lua52 luajit m4 make man2html mercurial meson mold mpc nasm ninja patch perl_Locale_gettext pip pkg_config plamobuild python3_setuptools python_dev python_six ruby slang swig yasm ; 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

