Magellan Linux

Annotation of /smage/trunk/extras/citrix-plugin-speechmike/citrix-plugin-speechmike-0.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4675 - (hide annotations) (download)
Fri Mar 22 13:22:15 2013 UTC (11 years, 2 months ago) by niro
File size: 1794 byte(s)
auto added: ver bump to 0.4-r1
1 niro 4675 # $Id$
2    
3     PNAME="citrix-plugin-speechmike"
4     PVER="0.4"
5     PBUILD="r1"
6    
7     SPLIT_PACKAGES="speechmike-config-tools citrix-plugin-speechmike"
8    
9     PCAT="net-misc"
10     HOMEPAGE="http://magellan-linux.de"
11    
12     CONFIG_DEPEND=">= virtual/glibc"
13     PLUGIN_DEPEND=">= net-misc/ica-client-12"
14     SDEPEND="${CONFIG_DEPEND}
15     ${PLUGIN_DEPEND}"
16    
17     SRCFILE="${PNAME}-${PVER}.tar.bz2"
18     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19    
20     sminclude mbuild mtools
21    
22     SRC_URI=( mirror://${PNAME}/${SRCFILE} )
23    
24     UP2DATE="echo ${PVER}"
25    
26     split_info_speechmike-config-tools()
27     {
28     DESCRIPTION="Philips SpeechMike config helper tools."
29     DEPEND="${CONFIG_DEPEND}"
30     }
31    
32     split_info_citrix-plugin-speechmike()
33     {
34     DESCRIPTION="Philips SpeechMike Driver and SDK for Citrix."
35     DEPEND="== ${PCAT}/speechmike-config-tools-${PVER}
36     ${PLUGIN_DEPEND}"
37     }
38    
39     src_compile()
40     {
41     cd ${SRCDIR}
42     mmake ICAROOTDIR=/opt/ica-client || die
43     }
44    
45     src_install_speechmike-config-tools()
46     {
47     cd ${SRCDIR}
48     mmake ICAROOTDIR=/opt/ica-client DESTDIR=${BINDIR} install-config-tools || die
49     }
50    
51     src_install_citrix-plugin-speechmike()
52     {
53     cd ${SRCDIR}
54     mmake ICAROOTDIR=/opt/ica-client DESTDIR=${BINDIR} install || die
55    
56     # remove config tools
57     mdelete /usr/bin/nuainitool || die
58     mdelete /usr/bin/speechmike-config || die
59     }
60    
61     postinstall_citrix-plugin-speechmike()
62     {
63     if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
64     then
65     [[ -x /usr/bin/speechmike-config ]] && /usr/bin/speechmike-config install
66     # restart tmpfiles service to generate missing tmpfiles
67     systemctl restart systemd-tmpfiles-setup.service
68     fi
69     mstartunit dpmmountd DPMMountd
70     }
71    
72     postremove_citrix-plugin-speechmike()
73     {
74     if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
75     then
76     # do nothing on update
77     [[ -x /usr/sbin/DPMMountd ]] && return
78     [[ -x /usr/bin/speechmike-config ]] && /usr/bin/speechmike-config remove
79     fi
80     mstopunit dpmmountd DPMMountd
81     }