updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bin32-acroread-it / PKGBUILD
blob185da18df8b221c142ad9507ed8715bcb49c09c7
1 # Contributor: Alessandro Sagratini <ale_sagra@hotmail.com>
3 pkgname=bin32-acroread-it
4 pkgver=8.1.7
5 pkgrel=1
6 pkgdesc="Adobe Acrobat Reader for viewing PDF files. Italian version"
7 arch=('x86_64')
8 url="http://www.adobe.com/products/acrobat/main.html"
9 license=('custom')
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 \
14         acroread-scim.patch \
15         acroread-lib32.patch)
17 md5sums=('19d26c9cd96bf41c8fa99c1825c13a41' 
18          'd2feee285deaafe4fcbe7af346aca5cb'                                                                                                                                                                                                  
19          '8dc7d6b280b3a7eb8df08f76c026dc66')
21 build() {
22   cd ${startdir}/src
23   rpmextract.sh AdobeReader_ita-${pkgver}-1.i486.rpm
24   cd opt/Adobe/Reader8
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
34     
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
41     
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 {} \;