#!/usr/bin/bash # This script assumes it will be launched within "/NAME/VERSION/src" dir. # With all sources in "src" Your Vector Linux .tlz package, slack-desc, # and slack-required will be found in "VERSION" dir. The extraction and # build will be in a temp dir created in "NAME" dir, and then removed on exit. # Comment out second to last line to keep this dir intact. NAME="skype" #Enter package Name! VERSION=${VERSION:-"2.0.0.72"} #Enter package Version! VL_PACKAGER=${VL_PACKAGER:-"wcs"} #Enter your Name! #SYSTEM VARIABLES #---------------------------------------------------------------------------- BUILD=${BUILDNUM:-"1"} VL_VERSION=${VL_VERSION:-"$(ls /var/log/packages/|grep vlconfig2|cut -d "-" -f4|cut -c 2-5)"} #---------------------------------------------------------------------------- #SETUP PACKAGING ENVIRONMENT #-------------------------------------------- CWD=$(pwd) cd ../ RELEASEDIR=$(pwd) cd $CWD mkdir -p $RELEASEDIR/tmp TMP=$RELEASEDIR/tmp PKG=$TMP/package-$NAME #-------------------------------------------- if [ $UID != 0 ]; then echo "You are not authorized to run this script. Please login as root" exit 1 fi if [ ! -x /usr/bin/requiredbuilder ]; then echo "Requiredbuilder not installed, or not executable." exit 1 fi if [ $VL_PACKAGER = "YOURNAME" ]; then echo 'Who are you? Please edit VL_PACKAGER=${VL_PACKAGER:-YOURNAME} in this script. Change the word "YOURNAME" to your VectorLinux packager name. You may also export VL_PACKAGER, or call this script with VL_PACKAGER="YOUR NAME HERE"' exit 1 fi #ARCH SETUP #-------------------------------------------- ARCH=noarch #-------------------------------------------- rm -rf $PKG mkdir -p $PKG cd $TMP #---------------------------------------------------------------------- # This creates the white space in front of "handy-ruler" in slack-desc below. LENGTH=$(expr length "$NAME") SPACES=0 SHIM="" until [ "$SPACES" = "$LENGTH" ]; do SHIM="$SHIM " let SPACES=$SPACES+1 done # Fill in the package summary between the () below. # Then package the description, License, Author and Website. # There may be no more then 11 $NAME: lines in a valid slack-desc. cat > $RELEASEDIR/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 (Internet telephony) $NAME: Skype is an internet telephony program that allows users to contact $NAME: other Skype users online at no charge, as well as connect to land $NAME: lines and cell phones at a fee. Skype also features video $NAME: conferencing, instant messaging, and file transferring. $NAME: Installation of this package downloads the skype binaries from the $NAME: official website and places the files in the right directories. $NAME: (Adapted from hanumizzle's script) $NAME: License: Proprietary / Freeware $NAME: Authors: Skype Limited $NAME: Website: http://www.skype.com/ #---------------------------------------- BUILDDATE: $(date) PACKAGER: $VL_PACKAGER HOST: $(uname -srm) DISTRO: $(cat /etc/vector-version) CONFIGURE: N/A EOF mkdir $PKG/install mkdir -p $PKG/usr/bin mkdir -p $PKG/usr/share/pixmaps mkdir $PKG/usr/share/applications mkdir -p $PKG/usr/doc/skype-$VERSION mkdir -p $PKG/etc/dbus-1/system.d mkdir -p $PKG/usr/share/skype/avatars mkdir $PKG/usr/share/skype/lang mkdir $PKG/usr/share/skype/sounds cp $CWD/slack-required $RELEASEDIR/slack-required cat $RELEASEDIR/slack-desc > $PKG/install/slack-desc cp $CWD/slack-required $PKG/install/slack-required cp $CWD/doinst.sh $PKG/install/doinst.sh touch "$PKG/etc/dbus-1/system.d/skype.conf" touch "$PKG/usr/bin/skype" touch "$PKG/usr/doc/skype-2.0.0.72/LICENSE" touch "$PKG/usr/doc/skype-2.0.0.72/README" touch "$PKG/usr/doc/skype-2.0.0.72/LICENSE.RtAudio" touch "$PKG/usr/share/pixmaps/skype.png" touch "$PKG/usr/share/pixmaps/SkypeBlue_32x32.png" touch "$PKG/usr/share/pixmaps/SkypeBlue_48x48.png" touch "$PKG/usr/share/pixmaps/SkypeBlue_16x16.png" touch "$PKG/usr/share/applications/skype.desktop" touch "$PKG/usr/share/skype/lang/skype_bg.qm" touch "$PKG/usr/share/skype/lang/skype_bg.ts" touch "$PKG/usr/share/skype/lang/skype_de.qm" touch "$PKG/usr/share/skype/lang/skype_de.ts" touch "$PKG/usr/share/skype/lang/skype_en.qm" touch "$PKG/usr/share/skype/lang/skype_en.ts" touch "$PKG/usr/share/skype/lang/skype_es.qm" touch "$PKG/usr/share/skype/lang/skype_es.ts" touch "$PKG/usr/share/skype/lang/skype_et.qm" touch "$PKG/usr/share/skype/lang/skype_et.ts" touch "$PKG/usr/share/skype/lang/skype_fr.qm" touch "$PKG/usr/share/skype/lang/skype_fr.ts" touch "$PKG/usr/share/skype/lang/skype_ja.qm" touch "$PKG/usr/share/skype/lang/skype_ja.ts" touch "$PKG/usr/share/skype/lang/skype_it.qm" touch "$PKG/usr/share/skype/lang/skype_it.ts" touch "$PKG/usr/share/skype/lang/skype_ko.qm" touch "$PKG/usr/share/skype/lang/skype_ko.ts" touch "$PKG/usr/share/skype/lang/skype_lt.qm" touch "$PKG/usr/share/skype/lang/skype_lt.ts" touch "$PKG/usr/share/skype/lang/skype_lv.qm" touch "$PKG/usr/share/skype/lang/skype_lv.ts" touch "$PKG/usr/share/skype/lang/skype_pl.qm" touch "$PKG/usr/share/skype/lang/skype_pl.ts" touch "$PKG/usr/share/skype/lang/skype_ro.qm" touch "$PKG/usr/share/skype/lang/skype_ro.ts" touch "$PKG/usr/share/skype/lang/skype_ru.qm" touch "$PKG/usr/share/skype/lang/skype_ru.ts" touch "$PKG/usr/share/skype/lang/skype_th.qm" touch "$PKG/usr/share/skype/lang/skype_th.ts" touch "$PKG/usr/share/skype/lang/skype_tr.qm" touch "$PKG/usr/share/skype/lang/skype_tr.ts" touch "$PKG/usr/share/skype/lang/skype_pt_br.qm" touch "$PKG/usr/share/skype/lang/skype_pt_br.ts" touch "$PKG/usr/share/skype/lang/skype_pt_pt.qm" touch "$PKG/usr/share/skype/lang/skype_pt_pt.ts" touch "$PKG/usr/share/skype/lang/skype_zh_s.qm" touch "$PKG/usr/share/skype/lang/skype_zh_s.ts" touch "$PKG/usr/share/skype/lang/skype_zh_t.qm" touch "$PKG/usr/share/skype/lang/skype_zh_t.ts" touch "$PKG/usr/share/skype/sounds/TransferRequest.wav" touch "$PKG/usr/share/skype/sounds/CallHangup.wav" touch "$PKG/usr/share/skype/sounds/CallFailed.wav" touch "$PKG/usr/share/skype/sounds/TransferFailed.wav" touch "$PKG/usr/share/skype/sounds/CallRingingIn.wav" touch "$PKG/usr/share/skype/sounds/CallRingingOut.wav" touch "$PKG/usr/share/skype/sounds/CallConnecting.wav" touch "$PKG/usr/share/skype/sounds/ContactOnline.wav" touch "$PKG/usr/share/skype/sounds/CallRemoteHangup.wav" touch "$PKG/usr/share/skype/sounds/ChatOutgoing.wav" touch "$PKG/usr/share/skype/sounds/ChatIncomingInitial.wav" touch "$PKG/usr/share/skype/sounds/CallHold.wav" touch "$PKG/usr/share/skype/sounds/VoicemailReceived.wav" touch "$PKG/usr/share/skype/sounds/TransferComplete.wav" touch "$PKG/usr/share/skype/sounds/ContactOffline.wav" touch "$PKG/usr/share/skype/sounds/SkypeLogin.wav" touch "$PKG/usr/share/skype/sounds/ContactAuthRequest.wav" touch "$PKG/usr/share/skype/sounds/ChatIncoming.wav" touch "$PKG/usr/share/skype/sounds/ContactAdded.wav" touch "$PKG/usr/share/skype/sounds/CallResume.wav" touch "$PKG/usr/share/skype/sounds/SkypeLogout.wav" touch "$PKG/usr/share/skype/sounds/CallBusy.wav" touch "$PKG/usr/share/skype/avatars/Desert Skype.png" touch "$PKG/usr/share/skype/avatars/DJ Skype.png" touch "$PKG/usr/share/skype/avatars/DIY Skype.png" touch "$PKG/usr/share/skype/avatars/Skype Goaaaaal.png" touch "$PKG/usr/share/skype/avatars/Skype Beauty.png" touch "$PKG/usr/share/skype/avatars/Skype Bling.png" touch "$PKG/usr/share/skype/avatars/Beach Skype.png" touch "$PKG/usr/share/skype/avatars/Christmas Skype.png" touch "$PKG/usr/share/skype/avatars/Designer Skype.png" touch "$PKG/usr/share/skype/avatars/Skype Jah.png" touch "$PKG/usr/share/skype/avatars/Hula Skype.png" touch "$PKG/usr/share/skype/avatars/Devil Skype.png" touch "$PKG/usr/share/skype/avatars/Skype Cola.png" touch "$PKG/usr/share/skype/avatars/Skype Smiley.png" touch "$PKG/usr/share/skype/avatars/Metal Skype.png" touch "$PKG/usr/share/skype/avatars/Skype-in-one.png" touch "$PKG/usr/share/skype/avatars/Skype Extreme.png" touch "$PKG/usr/share/skype/avatars/Skype Headset.png" touch "$PKG/usr/share/skype/avatars/Carnaval Skype.png" touch "$PKG/usr/share/skype/avatars/Yin Yang Skype.png" touch "$PKG/usr/share/skype/avatars/Call Me Sweetheart.png" touch "$PKG/usr/share/skype/avatars/Skypers of the Caribbean.png" touch "$PKG/usr/share/skype/avatars/Skype Cool Shades.png" touch "$PKG/usr/share/skype/avatars/Angel Skype.png" touch "$PKG/usr/share/skype/avatars/College Skype.png" touch "$PKG/usr/share/skype/avatars/Call Me.png" touch "$PKG/usr/share/skype/avatars/Earbud Skype.png" touch "$PKG/usr/share/skype/avatars/Skype 502.png" touch "$PKG/usr/share/skype/avatars/Skype.png" touch "$PKG/usr/share/skype/avatars/Rice Skype.png" touch "$PKG/usr/share/skype/avatars/Skype Artiste.png" touch "$PKG/usr/share/skype/avatars/Chic Skype.png" touch "$PKG/usr/share/skype/avatars/Skype San.png" touch "$PKG/usr/share/skype/avatars/Skype Boarder.png" touch "$PKG/usr/share/skype/avatars/Skype Brrr... .png" touch "$PKG/usr/share/skype/avatars/Skype Time.png" touch "$PKG/usr/share/skype/avatars/Skype-a-Manger.png" touch "$PKG/usr/share/skype/avatars/Travel Skype.png" touch "$PKG/usr/share/skype/avatars/Make Skype Not War.png" touch "$PKG/usr/share/skype/avatars/Skype Candy.png" touch "$PKG/usr/share/skype/avatars/Skype-ahoy.png" touch "$PKG/usr/share/skype/avatars/Fax Skype.png" touch "$PKG/usr/share/skype/avatars/Skype Safety.png" touch "$PKG/usr/share/skype/avatars/Skypahontas.png" touch "$PKG/usr/share/skype/avatars/Pop Skype.png" touch "$PKG/usr/share/skype/avatars/The Skypeness.png" touch "$PKG/usr/share/skype/avatars/Skype in a Bag.png" touch "$PKG/usr/share/skype/avatars/Ninja Skype.png" touch "$PKG/usr/share/skype/avatars/Sushi Skype.png" touch "$PKG/usr/share/skype/avatars/Empire Skype.png" touch "$PKG/usr/share/skype/avatars/Skype Aid.png" touch "$PKG/usr/share/skype/avatars/Skype Jyve.png" touch "$PKG/usr/share/skype/avatars/Business Skype.png" touch "$PKG/usr/share/skype/avatars/Wetsuit Skype.png" touch "$PKG/usr/share/skype/avatars/Skype Shorty.png" touch "$PKG/usr/share/skype/avatars/Star Skype.png" touch "$PKG/usr/share/skype/avatars/Behind Skype.png" touch "$PKG/usr/share/skype/avatars/Architect Skype.png" touch "$PKG/usr/share/skype/avatars/Party Skype.png" touch "$PKG/usr/share/skype/avatars/Geisha Skype.png" cd $PKG #FINISH PACKAGE #-------------------------------------------------------------- echo "Creating package $NAME-$VERSION-$ARCH-$BUILD.tlz" makepkg -l y -c n $RELEASEDIR/$NAME-$VERSION-$ARCH-$BUILD.tlz cd $CWD echo "Cleaning up temp files..." && rm -rf $TMP echo "Package Complete" #--------------------------------------------------------------