Magellan Linux

Contents of /trunk/extras/ica-client/ica-client-11.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4200 - (show annotations) (download)
Mon Nov 30 10:11:23 2009 UTC (14 years, 5 months ago) by niro
File size: 2108 byte(s)
-ver bump to 11.0
1 # $Header: /magellan-cvs/smage/ica-client/ica-client-10.6-r2.smage2,v 1.2 2008/02/07 14:23:39 niro Exp $
2
3 PNAME="ica-client"
4 PVER="11.0"
5 PBUILD="r1"
6
7 PCATEGORIE="net-misc"
8 STATE="unstable"
9
10 DESCRIPTION="Citrix ICA client."
11 HOMEPAGE="http://www.citrix.com/"
12
13 DEPEND=">= virtual/glibc
14 >= x11-libs/libXp-1
15 >= x11-libs/libXaw-1
16 >= x11-libs/libX11-1
17 >= x11-libs/libSM-1
18 >= x11-libs/libICE-1
19 >= x11-libs/libXpm-3.5
20 >= x11-libs/openmotif-2.3.1"
21
22 SDEPEND=">= app-arch/rpm2targz-9.0
23 >= dev-util/desktop-file-utils-0.10"
24
25 SRCFILE="ICAClient-${PVER}-1.i386.rpm"
26 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
27
28 sminclude mtools xdg
29
30 SRC_URI=(
31 http://download2.citrix.com/FILES/en/products/Linux${PVER:0:2}/${SRCFILE}
32 mirror://${PNAME}/${SRCFILE}
33 )
34
35 src_prepare()
36 {
37 install -d ${SRCDIR} || die
38 cd ${SRCDIR}
39
40 rpm2targz ${SOURCEDIR}/${PNAME}/${SRCFILE} || die
41 tar --no-same-owner -xvzf ${SRCDIR}/${SRCFILE/.rpm/.tar.gz} || die
42 }
43
44 src_install()
45 {
46 cd ${SRCDIR}/usr/lib/ICAClient
47
48 # needed directories
49 minstalldir /etc/env.d || die
50 minstalldir /usr/bin || die
51 minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die
52 minstalldir /opt/ica-client/.config || die
53
54 cp -a * ${BINDIR}/opt/ica-client || die
55
56 # install icons in a proper directory
57 minstallpixmap icons/session.xpm || die
58 minstallpixmap icons/manager.xpm || die
59
60 # and create a desktop file
61 minstall_desktop_icon \
62 --name "Citrix Program Neighbourhood" \
63 --file wfcmgr \
64 --exec /usr/bin/wfcmgr \
65 --icon manager.xpm \
66 --categories Network,Application || die
67
68 # install browser plugin to a proper location
69 mlink /opt/ica-client/npica.so /usr/$(mlibdir)/nsbrowser/plugins/npica.so || die
70
71 # install wrappers to prevent slowdowns with other locales than 'C'
72 echo 'env LC_ALL="" LANG="" /opt/ica-client/wfcmgr $*' > ${BINDIR}/usr/bin/wfcmgr || die
73 echo 'env LC_ALL="" LANG="" /opt/ica-client/wfica $*' > ${BINDIR}/usr/bin/wfica || die
74 mchmod 0755 /usr/bin/wfcmgr || die
75 mchmod 0755 /usr/bin/wfica || die
76
77 # fixes some hardcoded pathes
78 minstalldir /etc/env.d || die
79 echo 'ICAROOT=/opt/ica-client' > ${BINDIR}/etc/env.d/10ica-client || die
80 }

Properties

Name Value
svn:keywords Id