Magellan Linux

Contents of /smage/trunk/extras/citrix-plugin-speechmike/citrix-plugin-speechmike-0.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 4670 - (show annotations) (download)
Fri Mar 22 12:36:40 2013 UTC (11 years, 2 months ago) by niro
File size: 1665 byte(s)
-create tmpfiles after installation
1 # $Id$
2
3 PNAME="citrix-plugin-speechmike"
4 PVER="0.3"
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_install_speechmike-config-tools()
40 {
41 cd ${SRCDIR}
42 mmake DESTDIR=${BINDIR} install-config-tools || die
43 }
44
45 src_install_citrix-plugin-speechmike()
46 {
47 cd ${SRCDIR}
48 mmake DESTDIR=${BINDIR} install || die
49
50 # remove config tools
51 mdelete /usr/bin/nuainitool || die
52 mdelete /usr/bin/speechmike-config || die
53 }
54
55 postinstall_citrix-plugin-speechmike()
56 {
57 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
58 then
59 [[ -x /usr/bin/speechmike-config ]] && /usr/bin/speechmike-config install
60 # restart tmpfiles service to generate missing tmpfiles
61 systemctl restart systemd-tmpfiles-setup.service
62 fi
63 mstartunit dpmmountd DPMMountd
64 }
65
66 postremove_citrix-plugin-speechmike()
67 {
68 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
69 then
70 # do nothing on update
71 [[ -x /usr/sbin/DPMMountd ]] && return
72 [[ -x /usr/bin/speechmike-config ]] && /usr/bin/speechmike-config remove
73 fi
74 mstopunit dpmmountd DPMMountd
75 }