updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / acroread-es / PKGBUILD
blob1aeb1b01cc7b5da3a0355845624675f872007cd1
1 # Contributor: Sergio Montesinos <sermonpe@yahoo.es>
3 pkgname=acroread-es
4 pkgver=8.1.7
5 pkgrel=2
6 pkgdesc="Adobe Acrobat Reader for viewing PDF files. Spanish version"
7 arch=('i686')
8 url="http://www.adobe.com/products/acrobat/main.html"
9 license=('custom')
10 depends=('gtk2' 'bash' 'mesa')
11 makedepends=('rpmextract')
12 source=(http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/${pkgver}/esp/AdobeReader_esp-${pkgver}-1.i486.rpm \
13         acroread-scim.patch)
14 md5sums=('517af4a798ac1ab894fa220af8d93718' '8422bddbb8c03535704a245f9858465e')
16 build() {
17   cd ${startdir}/src
18   rpmextract.sh AdobeReader_esp-${pkgver}-1.i486.rpm
19   cd opt/Adobe/Reader8
21   patch -Np3 -i ${startdir}/src/acroread-scim.patch || return 1
23   install -D -m644 Resource/Support/AdobeReader.desktop \
24     ${startdir}/pkg/usr/share/applications/AdobeReader.desktop
25   sed -i 's/AdobeReader8.png/AdobeReader.png/' \
26     ${startdir}/pkg/usr/share/applications/AdobeReader.desktop
27   install -D -m644 Resource/Icons/64x64/AdobeReader8.png \
28     ${startdir}/pkg/usr/share/pixmaps/AdobeReader.png
29   
30   install -d ${startdir}/pkg/opt/acrobat
31   cp -r Reader ${startdir}/pkg/opt/acrobat/
32   cp -r Resource ${startdir}/pkg/opt/acrobat/
34   install -D -m755 bin/acroread ${startdir}/pkg/opt/acrobat/bin/acroread
35   install -d ${startdir}/pkg/usr/bin
36   ln -sf /opt/acrobat/bin/acroread ${startdir}/pkg/usr/bin/acroread
38   install -D -m755 Browser/intellinux/nppdf.so \
39     ${startdir}/pkg/usr/lib/mozilla/plugins/nppdf.so
41   install -D -m644 Reader/Legal/en_US/License.txt \
42     ${startdir}/pkg/usr/share/licenses/${pkgname}/License.txt