#!/bin/bash/ NAME=vDefsound mkdir -p ./mkpkg/install cat > ./mkpkg/install/slack-desc << EOF # HOW TO EDIT THIS FILE: # The "handy ruler" below makes it easier to edit a package description. Line # up the first '|' above the ':' following the base package name, and the '|' # on the right side marks the last column you can put a character in. You must # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. $SHIM|-----handy-ruler------------------------------------------------------| $NAME: $NAME (Allows for user choice of default sound card) $NAME: Program installs to run at start up. If a usb device is choosen as the $NAME: default sound card by the system. It will detect it and offer the user $NAME: the choice of switchin to another sound card as default. $NAME: Simple bash script with yad as front end. $NAME: $NAME: $NAME: $NAME: License: GPLv3 $NAME: Authors: Ken Coulton $NAME: Website: www.opensourcebistro.com EOF cat >./mkpkg/install/slack-required << EOF bash >= 4.1.010 EOF mkdir -p ./mkpkg/etc/xdg/autostart cat > ./mkpkg/etc/xdg/autostart/vDefsound.desktop << EOF [Desktop Entry] Version=0.10.0 Encoding=UTF-8 Name=vDefsound Comment=Verifies default sound card if usb detected as default Exec=/usr/bin/vDefsound Terminal=false Type=Application Categories= GenericName= EOF mkdir -p ./mkpkg/usr/share/applications cat > ./mkpkg/usr/share/applications/vDefsound.desktop << EOF [Desktop Entry] Version=0.10.0 Encoding=UTF-8 Name=vDefsound Comment=Verifies default sound card if usb detected as default Exec=/usr/bin/vDefsound Terminal=false Type=Application Categories=Utility; GenericName= EOF mkdir -p ./mkpkg/usr/bin cp ./vDefsound ./mkpkg/usr/bin cd ./mkpkg makepkg -l y -c n ./vDefsound-0.10.0-i586-1vl70.txz mv ./vDefsound-0.10.0-i586-1vl70.txz ../ cd ../ rm -r ./mkpkg exit