#!/bin/sh
#item   ####description                                      ###on off ###
TMP=/var/log/setup/tmp
if [ ! -d $TMP ]; then
  mkdir -p $TMP
fi
cat /dev/null > $TMP/SeTnewtag
dialog --backtitle "Slackware installer: package selection" --title "SERIES KDE" \
--checklist "Please select the packages you wish to install from this series. \
Use the UP/DOWN keys to scroll through the \
list, and the SPACE key to select the packages you wish to \
install. Recommended packages have already been selected for \
you, but you may unselect them if you wish. \
 \
Press ENTER when you are done." \
22 72 9 \
"amarok" "A media player for KDE" "on" \
"ark" "KDE archiver tool" "on" \
"audiocd-kio" "audiocd kio slave" "on" \
"bluedevil" "bluetooth stack for KDE" "on" \
"bomber" "arcade bombing game for KDE" "on" \
"bovo" "five-in-a-row board game" "on" \
"calligra" "KDE office productivity suite" "on" \
"dragon" "KDE multimedia player" "on" \
"filelight" "file system monitor" "on" \
"granatier" "bomberman clone for KDE" "on" \
"gwenview" "image viewer" "on" \
"juk" "audio jukebox application" "on" \
"k3b" "CD/DVD burning app for KDE" "on" \
"kaccessible" "KDE accessibility bridge" "on" \
"kactivities" "API for KDE Activities" "on" \
"kamera" "Digital camera support" "on" \
"kapman" "KDE version of Pac-Man" "on" \
"kate" "advanced text editor" "on" \
"katomic" "re-assemble molecules from compound atoms" "on" \
"kaudiocreator" "CD ripper and audio encoder" "on" \
"kblackbox" "a game of hide and seek" "on" \
"kblocks" "falling blocks game for KDE" "on" \
"kbounce" "KDE Bounce Ball Game" "on" \
"kbreakout" "breakout-like game for KDE" "on" \
"kcalc" "KDE calculator" "on" \
"kcharselect" "character picker" "on" \
"kcolorchooser" "color chooser application" "on" \
"kde-base-artwork" "KDE themes artwork" "on" \
"kde-baseapps" "KDE core applications and files" "on" \
"kde-runtime" "KDE runtime core" "on" \
"kde-wallpapers" "Wallpapers for KDE" "on" \
"kde-workspace" "KDE Plasma Desktop" "on" \
"kdeadmin" "KDE system administration utilities" "on" \
"kdeartwork" "Extra themes, sounds, wallpapers, and styles" "on" \
"kdegraphics-mobipocket" "Mobipocket support for Okular" "on" \
"kdegraphics-strigi-analyzer" "graphics plugins for strigi" "on" \
"kdegraphics-thumbnailers" "image thumbnailers" "on" \
"kdelibs" "Libraries required for KDE" "on" \
"kdenetwork" "Networking programs for KDE" "on" \
"kdepim" "Personal Information Management tools" "on" \
"kdepim-runtime" "KDE PIM runtime support package" "on" \
"kdepimlibs" "KDE Personal Information Management libraries" "on" \
"kdeplasma-addons" "Plasma addons for KDE" "on" \
"kdesdk" "KDE software development kit" "on" \
"kdetoys" "Toys for the KDE desktop" "on" \
"kdevelop" "KDE Application Development Environment" "on" \
"kdevelop-pg-qt" "KDevelop Parser Generator" "on" \
"kdevelop-php" "PHP language plugin for KDevelop" "on" \
"kdevelop-php-docs" "PHP documentation plugin for KDevelop" "on" \
"kdevplatform" "Libraries used by kdevelop" "on" \
"kdewebdev" "Quanta Plus web development environment" "on" \
"kdf" "show available disk space" "on" \
"kdiamond" "three-in-a-row game for KDE" "on" \
"kfloppy" "floppy disk formatter" "on" \
"kfourinline" "four-in-a-row board game" "on" \
"kgamma" "display gamma configuration" "on" \
"kgoldrunner" "Hunt gold, dodge enemies and solve puzzles" "on" \
"kgpg" "GUI for GnuPG" "on" \
"kigo" "Go board game for KDE" "on" \
"killbots" "Robots-like game for KDE" "on" \
"kio-mtp" "Provides KIO Access to MTP devices" "on" \
"kiriki" "yahtzee-like dice game for KDE" "on" \
"kjumpingcube" "territory capture game" "on" \
"klickety" "strategy game" "on" \
"klines" "tactical game for KDE" "on" \
"kmag" "Screen magnifier" "on" \
"kmahjongg" "KDE port of Mahjongg game" "on" \
"kmines" "minesweeper clone for KDE" "on" \
"kmix" "sound mixer" "on" \
"kmousetool" "Automatic mouse clicks" "on" \
"kmouth" "Speech synthesis frontend" "on" \
"knavalbattle" "KDE version of battleship game" "on" \
"knetwalk" "turn pieces to get computers connected" "on" \
"kolf" "miniature golf game for KDE" "on" \
"kollision" "simple ball dodging game" "on" \
"kolourpaint" "easy to use paint program" "on" \
"konquest" "KDE version of Gnu-Lactic Konquest" "on" \
"konsole" "KDE terminal emulator" "on" \
"korundum" "KDE ruby bindings" "on" \
"kpat" "patience card game for KDE" "on" \
"kplayer" "KDE media player" "on" \
"kremotecontrol" "remote control frontend" "on" \
"kreversi" "reversi board game for KDE" "on" \
"kross-interpreters" "Kross interpreters" "on" \
"kruler" "screen ruler for KDE" "on" \
"ksaneplugin" "scanning plugin using libksane" "on" \
"kscreen" "KDE screen management" "on" \
"kshisen" "Shisen-Sho Mahjongg-like tile game" "on" \
"ksirk" "KDE port of the board game risk" "on" \
"ksnakeduel" "simple snake duel game for KDE" "on" \
"ksnapshot" "screen capture program" "on" \
"kspaceduel" "space arcade game" "on" \
"ksquares" "connect the dots to create squares" "on" \
"ksudoku" "sudoku game" "on" \
"ktimer" "program scheduler" "on" \
"ktorrent" "BitTorrent program for KDE" "on" \
"ktuberling" "picture game for children" "on" \
"kubrick" "3-D game based on Rubik's Cube" "on" \
"kwallet" "KDE wallet manager" "on" \
"kwebkitpart" "WebKit browser component" "on" \
"libkcddb" "KDE CDDB retrieval library" "on" \
"libkcompactdisc" "KDE library for playing & ripping CDs" "on" \
"libkdcraw" "RAW photo wrapper library" "on" \
"libkdegames" "common code and data for many KDE games" "on" \
"libkexiv2" "photo metadata library" "on" \
"libkipi" "image plugin library" "on" \
"libkmahjongg" "library for rendering of Mahjongg tilesets" "on" \
"libksane" "scanner support library" "on" \
"libkscreen" "KDE screen management library" "on" \
"libktorrent" "KDE BitTorrent library" "on" \
"lskat" "Lieutnant Skat card game for KDE" "on" \
"mplayerthumbs" "Use MPlayer for KDE video thumbnail support" "on" \
"nepomuk-core" "Nepomuk Core utilities and libraries" "on" \
"nepomuk-widgets" "nepomuk widgets" "on" \
"networkmanagement" "KDE network control widget" "on" \
"okular" "a document viewer" "on" \
"oxygen-gtk2" "Oxygen theme for GTK+" "on" \
"oxygen-gtk3" "Oxygen GTK+3 engine" "on" \
"oxygen-icons" "Oxygen icon theme" "on" \
"palapeli" "jigsaw puzzle game" "on" \
"perlkde" "perl bindings for KDE" "on" \
"perlqt" "Perl OO interface to Qt" "on" \
"picmi" "logic puzzle game" "on" \
"polkit-kde-agent-1" "KDE polkit authenticator" "on" \
"polkit-kde-kcmodules-1" "KDE polkit kcmodules" "on" \
"print-manager" "tool for managing print jobs and printers" "on" \
"qtruby" "Qt bindings for ruby" "on" \
"skanlite" "KDE scanning program" "on" \
"smokegen" "SMOKE binding generator" "on" \
"smokekde" "smoke-kde library" "on" \
"smokeqt" "bindings for Qt libraries" "on" \
"superkaramba" "interactive widget manager" "on" \
"svgpart" "SVG plugin for KDE" "on" \
"sweeper" "remove traces of your activities" "on" \
"wicd-kde" "KDE wicd client" "on" \
2> $TMP/SeTpkgs
# If the user pressed cancel, or something bad happened then we
# mark all packages as skipped and bail out.
if [ $? = 1 -o $? = 255 ]; then
   # Not in Slackware, but a nice addition for Slackware ARM whilst
   # we're processing the package selection:
   dialog \
      --backtitle "Slackware installer: package selection" \
      --infobox "Marking all packages as skipped" 3 35
    rm -f $TMP/SeTpkgs
    # Empty, but not delete this file:
    > $TMP/SeTnewtag
  for PKG in \
amarok ark audiocd-kio bluedevil bomber bovo calligra dragon filelight granatier gwenview juk k3b kaccessible kactivities kamera kapman kate katomic kaudiocreator kblackbox kblocks kbounce kbreakout kcalc kcharselect kcolorchooser kde-base-artwork kde-baseapps kde-runtime kde-wallpapers kde-workspace kdeadmin kdeartwork kdegraphics-mobipocket kdegraphics-strigi-analyzer kdegraphics-thumbnailers kdelibs kdenetwork kdepim kdepim-runtime kdepimlibs kdeplasma-addons kdesdk kdetoys kdevelop kdevelop-pg-qt kdevelop-php kdevelop-php-docs kdevplatform kdewebdev kdf kdiamond kfloppy kfourinline kgamma kgoldrunner kgpg kigo killbots kio-mtp kiriki kjumpingcube klickety klines kmag kmahjongg kmines kmix kmousetool kmouth knavalbattle knetwalk kolf kollision kolourpaint konquest konsole korundum kpat kplayer kremotecontrol kreversi kross-interpreters kruler ksaneplugin kscreen kshisen ksirk ksnakeduel ksnapshot kspaceduel ksquares ksudoku ktimer ktorrent ktuberling kubrick kwallet kwebkitpart libkcddb libkcompactdisc libkdcraw libkdegames libkexiv2 libkipi libkmahjongg libksane libkscreen libktorrent lskat mplayerthumbs nepomuk-core nepomuk-widgets networkmanagement okular oxygen-gtk2 oxygen-gtk3 oxygen-icons palapeli perlkde perlqt picmi polkit-kde-agent-1 polkit-kde-kcmodules-1 print-manager qtruby skanlite smokegen smokekde smokeqt superkaramba svgpart sweeper wicd-kde  \ ; do
    echo "$PKG: SKP" >> $TMP/SeTnewtag
  done
  exit
fi
dialog \
  --backtitle "Slackware installer: package selection" \
  --infobox "Processing package selection" 3 33
cat /dev/null > $TMP/SeTnewtag
for PACKAGE in \
amarok ark audiocd-kio bluedevil bomber bovo calligra dragon filelight granatier gwenview juk k3b kaccessible kactivities kamera kapman kate katomic kaudiocreator kblackbox kblocks kbounce kbreakout kcalc kcharselect kcolorchooser kde-base-artwork kde-baseapps kde-runtime kde-wallpapers kde-workspace kdeadmin kdeartwork kdegraphics-mobipocket kdegraphics-strigi-analyzer kdegraphics-thumbnailers kdelibs kdenetwork kdepim kdepim-runtime kdepimlibs kdeplasma-addons kdesdk kdetoys kdevelop kdevelop-pg-qt kdevelop-php kdevelop-php-docs kdevplatform kdewebdev kdf kdiamond kfloppy kfourinline kgamma kgoldrunner kgpg kigo killbots kio-mtp kiriki kjumpingcube klickety klines kmag kmahjongg kmines kmix kmousetool kmouth knavalbattle knetwalk kolf kollision kolourpaint konquest konsole korundum kpat kplayer kremotecontrol kreversi kross-interpreters kruler ksaneplugin kscreen kshisen ksirk ksnakeduel ksnapshot kspaceduel ksquares ksudoku ktimer ktorrent ktuberling kubrick kwallet kwebkitpart libkcddb libkcompactdisc libkdcraw libkdegames libkexiv2 libkipi libkmahjongg libksane libkscreen libktorrent lskat mplayerthumbs nepomuk-core nepomuk-widgets networkmanagement okular oxygen-gtk2 oxygen-gtk3 oxygen-icons palapeli perlkde perlqt picmi polkit-kde-agent-1 polkit-kde-kcmodules-1 print-manager qtruby skanlite smokegen smokekde smokeqt superkaramba svgpart sweeper wicd-kde  \ ; do
 if grep "\(^\| \)$PACKAGE\( \|$\)" $TMP/SeTpkgs > /dev/null 2>&1 ; then
    echo "$PACKAGE: ADD" >> $TMP/SeTnewtag
  else
    echo "$PACKAGE: SKP" >> $TMP/SeTnewtag
  fi
done
rm -f $TMP/SeTpkgs
