| 1 | #!/bin/sh |
|---|
| 2 | # Filename: PBI.SetupScript.sh |
|---|
| 3 | # Place any custom installation code here. |
|---|
| 4 | # This script will be run after your program is extracted into |
|---|
| 5 | # /Programs/<ProgNameVer>/ |
|---|
| 6 | # Available variables: |
|---|
| 7 | # $PROGDIR - Directory where the files will be extracted to. |
|---|
| 8 | # $USERNAME - Username of who started the installation. |
|---|
| 9 | # $INSTALLMODE - Set to 'TEXT' or 'GUI', depending on which installer is running. |
|---|
| 10 | # |
|---|
| 11 | # TIP: 'kdialog' should be used for user interaction. |
|---|
| 12 | # To interact with the progress dialog echo these flags: |
|---|
| 13 | # echo 'TOTALSTEPS: <num>' # Set the total steps of the progress bar |
|---|
| 14 | # echo 'SETSTEPS: <num>' # Set the current progress of the progress bar |
|---|
| 15 | # echo 'MSG: <text>' # Display this text above progress bar |
|---|
| 16 | ######################################### |
|---|
| 17 | ln -s /Programs/${PROGDIR}/.sbin/digikam /usr/local/bin/digikam |
|---|
| 18 | ln -s /Programs/${PROGDIR}/bin/kdcraw /usr/local/bin/kdcraw |
|---|
| 19 | ln -s /Programs/${PROGDIR}/share/apps/digikam /usr/local/share/apps/digikam |
|---|
| 20 | ln -s /Programs/${PROGDIR}/share/apps/showfoto /usr/local/share/apps/showfoto |
|---|
| 21 | |
|---|
| 22 | ln -s /Programs/${PROGDIR} /Programs/digiKam |
|---|
| 23 | |
|---|
| 24 | # Copy over the specific kde plugins and services for digikam |
|---|
| 25 | cd /Programs/${PROGDIR}/lib/kde3 |
|---|
| 26 | for i in `ls` |
|---|
| 27 | do |
|---|
| 28 | ln -s /Programs/${PROGDIR}/lib/kde3/${i} /usr/local/lib/kde3/${i} |
|---|
| 29 | done |
|---|
| 30 | |
|---|
| 31 | cd /Programs/${PROGDIR}/share/services |
|---|
| 32 | for i in `ls` |
|---|
| 33 | do |
|---|
| 34 | ln -s /Programs/${PROGDIR}/share/services/${i} /usr/local/share/services/${i} |
|---|
| 35 | done |
|---|
| 36 | |
|---|
| 37 | cd /Programs/${PROGDIR}/share/apps/konqueror/servicemenus/ |
|---|
| 38 | for i in `ls` |
|---|
| 39 | do |
|---|
| 40 | ln -s /Programs/${PROGDIR}/share/apps/konqueror/servicemenus/${i} /usr/local/share/apps/konqueror/servicemenus/${i} |
|---|
| 41 | done |
|---|
| 42 | |
|---|
| 43 | cd /Programs/${PROGDIR}/share/servicetypes |
|---|
| 44 | for i in `ls` |
|---|
| 45 | do |
|---|
| 46 | ln -s /Programs/${PROGDIR}/share/servicetypes/${i} /usr/local/share/servicetypes/${i} |
|---|
| 47 | done |
|---|
| 48 | |
|---|
| 49 | # Copy over all the LANG files |
|---|
| 50 | LANGFILE="digikam.mo" |
|---|
| 51 | cd /Programs/${PROGDIR}/locale |
|---|
| 52 | for i in `ls` |
|---|
| 53 | do |
|---|
| 54 | mkdir -p /usr/local/share/locale/${i}/LC_MESSAGES >/dev/null 2>/dev/null |
|---|
| 55 | cp /Programs/${PROGDIR}/locale/${i}/${LANGFILE} /usr/local/share/locale/${i}/LC_MESSAGES/${LANGFILE} |
|---|
| 56 | done |
|---|
| 57 | |
|---|
| 58 | |
|---|
| 59 | echo "LAUNCHCLOSE: /usr/local/bin/digikam" |
|---|