Magellan Linux

Contents of /trunk/todo/acrobat-reader/acrobat-reader-8.1.2-r3.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2168 - (show annotations) (download)
Thu Jul 9 19:11:06 2009 UTC (14 years, 10 months ago) by niro
File size: 4108 byte(s)
-moved to 'todo'
1 # $Header: /magellan-cvs/smage/acrobat-reader/acrobat-reader-8.1.2-r3.smage2,v 1.1 2008/04/06 20:16:09 niro Exp $
2
3 PNAME="acrobat-reader"
4 PVER="8.1.2"
5 PBUILD="r3"
6
7 PCATEGORIE="app-text"
8 STATE="unstable"
9
10 DESCRIPTION="Adobe Acrobat Reader, the famous PDF reader."
11 HOMEPAGE="http://www.adobe.com/products/acrobat/readermain.html"
12
13 # x86_64 specific dependencies
14 SDEPENDS_x86_64=">= net-www/nspluginwrapper-0.9"
15 SPECIAL_VARS="SDEPENDS_x86_64"
16
17 DEPEND=">= x11-libs/gtk2+-2.12
18 \$(eval echo \\\$SDEPENDS_\${ARCH/i*86/x86} | tr ';' '\n')"
19
20 SDEPEND=">= dev-util/desktop-file-utils-0.10
21 >= sys-apps/sed-4"
22
23 SRCFILE="AdobeReader_enu-${PVER}-1.i486.tar.bz2"
24 SRCDIR="${BUILDDIR}/AdobeReader"
25
26 sminclude mtools
27
28 SRC_URI=(
29 http://ardownload.adobe.com/pub/adobe/reader/unix/${PVER:0:2}x/${PVER}/enu/${SRCFILE}
30 ftp://ftp.adobe.com/pub/adobe/reader/
31 mirror://${PNAME}/${SRCFILE}
32 )
33
34 # binary package, no stripping allowed
35 NOSTRIP=true
36
37 src_prepare()
38 {
39 munpack ${SRCFILE} || die
40
41 # unpack the real installer files
42 tar --no-same-owner -xvf ${SRCDIR}/COMMON.TAR -C ${SRCDIR} || die
43 tar --no-same-owner -xvf ${SRCDIR}/ILINXR.TAR -C ${SRCDIR} || die
44
45 # fix the broken desktop icon:
46 # /var/tmp/magebuild/builded/usr/share/applications/adobe-AdobeReader.desktop: warning: value "AdobeReader8.png" for key "Icon" in group "Desktop Entry" is an icon name with an extension, but there should be no extension as described in the Icon Theme Specification if the value is not an absolute path
47 # /var/tmp/magebuild/builded/usr/share/applications/adobe-AdobeReader.desktop: error: file contains key "Caption" in group "Desktop Entry", but keys extending the format should start with "X-"
48 # /var/tmp/magebuild/builded/usr/share/applications/adobe-AdobeReader.desktop: error: file contains multiple keys named "Name[de]" in group "Desktop Entry"
49 # Error on file "AdobeReader.desktop": Failed to validate the created desktop file
50 cat ${SRCDIR}/Adobe/Reader${PVER:0:1}/Resource/Support/AdobeReader.desktop \
51 | uniq \
52 | sed -e '/Caption=/d' -e '/Icon=.*/s/.png//' \
53 > ${SRCDIR}/Adobe/Reader${PVER:0:1}/Resource/Support/AdobeReader.desktop || die
54 }
55
56 src_install()
57 {
58 cd ${SRCDIR}/Adobe/Reader${PVER:0:1}
59
60 # needed directories
61 minstalldir /usr/bin || die
62 minstalldir /usr/lib/nsbrowser/plugins || die
63 minstalldir /usr/share/applications || die
64 minstalldir /opt/${PNAME}-${PVER}/bin || die
65
66 # install deskop icon
67 cp Resource/Support/AdobeReader.desktop AdobeReader.desktop || die
68 minstallpixmap Resource/Icons/64x64/AdobeReader8.png AdobeReader.png || die
69 desktop-file-install \
70 --vendor adobe \
71 --delete-original \
72 --dir ${BINDIR}/usr/share/applications \
73 --add-category X-Magellan-Extra \
74 --add-category Graphics \
75 --add-category Viewer \
76 --add-category Application \
77 AdobeReader.desktop \
78 || die
79
80 # fix permissions
81 chown --dereference -R -L root:root Reader || die
82 chown --dereference -R -L root:root Resource || die
83 find Reader -type d | xargs chmod 755 || die
84 find Resource -type d | xargs chmod 755 || die
85
86 # install data-files
87 mv Reader ${BINDIR}/opt/${PNAME}-${PVER} || die
88 mv Resource ${BINDIR}/opt/${PNAME}-${PVER} || die
89
90 # install bins
91 minstallexec bin/acroread /opt/${PNAME}-${PVER}/bin || die
92 mlink /opt/${PNAME}-${PVER}/bin/acroread /usr/bin/acroread || die
93
94 # install browser-plugin
95 minstallexec Browser/intellinux/nppdf.so /usr/lib/nsbrowser/plugins || die
96
97 # FIX ME: the PPKLite.api needs ldap, but we don't support this
98 local plugin_path
99 plugin_path="/opt/${PNAME}-${PVER}/Reader/intellinux/plug_ins"
100 [ -f ${BINDIR}/${plugin_path}/PPKLite.api ] && \
101 rm ${BINDIR}/${plugin_path}/PPKLite.api || die
102
103 cd ${SRCDIR}
104 minstallhtml ReadMe.htm || die
105 minstalldocs Adobe/Reader${PVER:0:1}/LICREAD.TXT || die
106 minstalldocs Adobe/Reader${PVER:0:1}/Browser/HowTo/ENU/Browser_Plugin_HowTo.txt || die
107 }
108
109 postinstall()
110 {
111 if [[ -x /usr/bin/nspluginwrapper ]]
112 then
113 echo "Auto installing 32bit plugins ..."
114 nspluginwrapper -v -a -i
115 fi
116 }
117
118 postremove()
119 {
120 if [[ -x /usr/bin/nspluginwrapper ]]
121 then
122 echo "Auto updating 32bit plugins ..."
123 nspluginwrapper -v -a -u
124 fi
125 }

Properties

Name Value
svn:keywords Id