root/pbibuild/modules/digikam/overlay-dir/PBI.SetupScript.sh

Revision 1379, 2.0 KB (checked in by kris, 11 months ago)

Added working digikam module

  • Property svn:executable set to *
Line 
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#########################################
17ln -s /Programs/${PROGDIR}/.sbin/digikam /usr/local/bin/digikam
18ln -s /Programs/${PROGDIR}/bin/kdcraw /usr/local/bin/kdcraw
19ln -s /Programs/${PROGDIR}/share/apps/digikam /usr/local/share/apps/digikam
20ln -s /Programs/${PROGDIR}/share/apps/showfoto /usr/local/share/apps/showfoto
21
22ln -s /Programs/${PROGDIR} /Programs/digiKam
23
24# Copy over the specific kde plugins and services for digikam
25cd /Programs/${PROGDIR}/lib/kde3
26for i in `ls`
27do
28 ln -s /Programs/${PROGDIR}/lib/kde3/${i} /usr/local/lib/kde3/${i}
29done
30
31cd /Programs/${PROGDIR}/share/services
32for i in `ls`
33do
34 ln -s /Programs/${PROGDIR}/share/services/${i} /usr/local/share/services/${i}
35done
36
37cd /Programs/${PROGDIR}/share/apps/konqueror/servicemenus/
38for i in `ls`
39do
40 ln -s /Programs/${PROGDIR}/share/apps/konqueror/servicemenus/${i} /usr/local/share/apps/konqueror/servicemenus/${i}
41done
42
43cd /Programs/${PROGDIR}/share/servicetypes
44for i in `ls`
45do
46 ln -s /Programs/${PROGDIR}/share/servicetypes/${i} /usr/local/share/servicetypes/${i}
47done
48
49# Copy over all the LANG files
50LANGFILE="digikam.mo"
51cd /Programs/${PROGDIR}/locale
52for i in `ls`
53do
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}
56done
57
58
59echo "LAUNCHCLOSE: /usr/local/bin/digikam"
Note: See TracBrowser for help on using the browser.