1 pkgname=bin32-acroread-es
4 pkgdesc="Adobe Acrobat Reader for viewing PDF files. Spanish version"
6 url="http://www.adobe.com/products/acrobat/main.html"
8 depends=('lib32-glibc' 'lib32-gtk2' 'lib32-pcre' 'lib32-libstdc++5' 'bash')
9 makedepends=(rpmextract patch)
10 install=(nsplugin.install)
11 source=(http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/${pkgver}/esp/AdobeReader_esp-${pkgver}-1.i486.rpm \
14 md5sums=('517af4a798ac1ab894fa220af8d93718'
15 '883defb8133c3bb4a62d6b08d58df03b'
16 '6d82d8a44f1f91667488b9c913f038db')
20 rpmextract.sh AdobeReader_esp-${pkgver}-1.i486.rpm
23 patch -Np3 -i ${startdir}/acroread-scim.patch || return 1
24 # Tell acroread to look for gconv libs in our lib32
25 patch -Np3 -i ${startdir}/acroread-lib32.patch || return 1
27 mkdir -p ${startdir}/pkg/usr/bin
28 mkdir -p ${startdir}/pkg/usr/share/applications
29 mkdir -p ${startdir}/pkg/usr/share/pixmaps
30 mkdir -p ${startdir}/pkg/opt/acrobat/bin
32 install -D -m644 Resource/Support/AdobeReader.desktop \
33 ${startdir}/pkg/usr/share/applications/AdobeReader.desktop
34 sed -i 's/AdobeReader8.png/AdobeReader.png/' \
35 ${startdir}/pkg/usr/share/applications/AdobeReader.desktop
36 install -D -m644 Resource/Icons/64x64/AdobeReader8.png \
37 ${startdir}/pkg/usr/share/pixmaps/AdobeReader.png
39 install -d ${startdir}/pkg/opt/acrobat
40 cp -r Reader ${startdir}/pkg/opt/acrobat/
41 cp -r Resource ${startdir}/pkg/opt/acrobat/
43 install -m755 bin/acroread ${startdir}/pkg/opt/acrobat/bin/
44 ln -sf ../../opt/acrobat/bin/acroread ${startdir}/pkg/usr/bin/acroread
46 # Put the plugins where nspluginwrapper can find them
47 install -m755 -D Browser/intellinux/nppdf.so \
48 ${startdir}/pkg/usr/lib/mozilla/plugins/nppdf.so
50 install -D -m644 Reader/Legal/es_ES/License.txt \
51 ${startdir}/pkg/usr/share/licenses/${pkgname}/License.txt
53 find ${startdir}/pkg -type d -exec chmod 755 {} \;