1 # Contributor: Alessandro Sagratini <ale_sagra@hotmail.com>
3 pkgname=bin32-acroread-it
6 pkgdesc="Adobe Acrobat Reader for viewing PDF files. Italian version"
8 url="http://www.adobe.com/products/acrobat/main.html"
10 depends=('lib32-glibc' 'lib32-gtk2' 'lib32-pcre' 'lib32-libstdc++5' 'bash')
11 makedepends=(rpmextract patch)
12 install=(nsplugin.install)
13 source=(ftp://ftp.adobe.com/pub/adobe/reader/unix/8.x/${pkgver}/ita/AdobeReader_ita-${pkgver}-1.i486.rpm \
17 md5sums=('19d26c9cd96bf41c8fa99c1825c13a41'
18 'd2feee285deaafe4fcbe7af346aca5cb'
19 '8dc7d6b280b3a7eb8df08f76c026dc66')
23 rpmextract.sh AdobeReader_ita-${pkgver}-1.i486.rpm
26 patch -Np3 -i ${startdir}/acroread-scim.patch || return 1
27 # Tell acroread to look for gconv libs in our lib32
28 patch -Np3 -i ${startdir}/acroread-lib32.patch || return 1
30 mkdir -p ${startdir}/pkg/usr/bin
31 mkdir -p ${startdir}/pkg/usr/share/applications
32 mkdir -p ${startdir}/pkg/usr/share/pixmaps
33 mkdir -p ${startdir}/pkg/opt/acrobat/bin
35 install -D -m644 Resource/Support/AdobeReader.desktop \
36 ${startdir}/pkg/usr/share/applications/AdobeReader.desktop
37 sed -i 's/AdobeReader8.png/AdobeReader.png/' \
38 ${startdir}/pkg/usr/share/applications/AdobeReader.desktop
39 install -D -m644 Resource/Icons/64x64/AdobeReader8.png \
40 ${startdir}/pkg/usr/share/pixmaps/AdobeReader.png
42 install -d ${startdir}/pkg/opt/acrobat
43 cp -r Reader ${startdir}/pkg/opt/acrobat/
44 cp -r Resource ${startdir}/pkg/opt/acrobat/
46 install -m755 bin/acroread ${startdir}/pkg/opt/acrobat/bin/
47 ln -sf ../../opt/acrobat/bin/acroread ${startdir}/pkg/usr/bin/acroread
49 # Put the plugins where nspluginwrapper can find them
50 install -m755 -D Browser/intellinux/nppdf.so \
51 ${startdir}/pkg/usr/lib/mozilla/plugins/nppdf.so
53 install -D -m644 Reader/Legal/en_US/License.txt \
54 ${startdir}/pkg/usr/share/licenses/${pkgname}/License.txt
56 find ${startdir}/pkg -type d -exec chmod 755 {} \;