1 |
# $Header: /magellan-cvs/smage/include/xdg.sminc,v 1.9 2007-11-10 13:05:36 niro Exp $ |
# $Id$ |
2 |
# xdg-utils |
# xdg-utils |
3 |
|
|
4 |
# for a complete list of known categories see: |
# for a complete list of known categories see: |
28 |
# Core KDE GNOME GTK Qt Motif Java ConsoleOnly Screensaver |
# Core KDE GNOME GTK Qt Motif Java ConsoleOnly Screensaver |
29 |
# TrayIcon Applet Shell |
# TrayIcon Applet Shell |
30 |
|
|
31 |
|
sminclude mtools |
32 |
|
|
33 |
# desktop-file-utils are needed |
# desktop-file-utils are needed |
34 |
SDEPEND="${SDEPEND} |
SDEPEND="${SDEPEND} |
35 |
>= dev-util/desktop-file-utils-0.1" |
>= dev-util/desktop-file-utils-0.1" |
128 |
|
|
129 |
[[ -z "$1" ]] && die "No xdg desktop file given" |
[[ -z "$1" ]] && die "No xdg desktop file given" |
130 |
|
|
131 |
# if no fullpath given use file from sourcedir |
# if -s given use file from sourcedir |
|
if [[ $1 = -s ]] |
|
|
then |
|
|
file="${SOURCEDIR}/${PNAME}/$2" |
|
|
destfile="$3" |
|
|
|
|
|
else |
|
|
file="$1" |
|
|
fi |
|
|
|
|
132 |
if [[ $1 = -s ]] |
if [[ $1 = -s ]] |
133 |
then |
then |
134 |
file="${SOURCEDIR}/${PNAME}/$2" |
file="${SOURCEDIR}/${PNAME}/$2" |
164 |
fi |
fi |
165 |
|
|
166 |
# needed directory |
# needed directory |
167 |
install -d ${BINDIR}/${destdir} || die |
minstalldir ${destdir} || die |
168 |
|
|
169 |
# install our xdg |
# install our xdg |
170 |
install -m 0644 -o root -g root ${file} ${BINDIR}/${destdir}/${destfile} || die |
minstallfile ${file} ${destdir}/${destfile} || die |
171 |
} |
} |