updated on Sat Jan 21 08:01:15 UTC 2012
[aur-mirror.git] / bin32-acroread-fr / PKGBUILD
blob113710d9d4125b51d2bda5205df9f57d2690f6a7
1 # Maintainer: Thomas Jost <schnouki@schnouki.net>
2 # Contributor: Terry Mitchell <tcmdvm@charter.net>
3 # Contributor: mightyjaym <jm.ambrosino@free.fr>
5 pkgname=bin32-acroread-fr
6 pkgver=9.4.2
7 pkgrel=1
8 pkgdesc="Adobe Acrobat Reader for viewing PDF files. French version"
9 arch=('x86_64')
10 url="http://www.adobe.com/products/acrobat/main.html"
11 license=('custom')
12 depends=('desktop-file-utils' 'lib32-gtk2' 'lib32-mesa' 'lib32-libxml2' 'xcb-util')
13 makedepends=('patch')
14 optdepends=('lib32-libcanberra: XDG sound support'
15             'nspluginwrapper: 32 bit plugin in 64 bit browser support')
16 provides=("acroread=$pkgver")
17 conflicts=('acroread' 'acroread-fr' 'bin32-acroread')
18 install=(acroread.install)
19 source=(ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/${pkgver}/fra/AdbeRdr${pkgver}-1_i486linux_fra.tar.bz2 \
20         acroread-lib32.patch)
21 md5sums=('90ccc9e2b1d3aebacc3854b251f81db2'
22          'c6eb179dbc5c5642acf58a6b74332dba')
23 sha256sums=('b5d017859057ea1ff2ea6c238a33cb7f5f4ab404c06b0a91d9c9ae41baa1e051'
24             'f85bb2cfa03a87a768b7021ebc3025151eab8fcaf087bbcf603616c8f89ff920')
26 build() {
27   cd "$srcdir/AdobeReader"
28   bsdtar -xf COMMON.TAR
29   bsdtar -xf ILINXR.TAR
30   cd Adobe/Reader9
32   patch -Np3 < "$srcdir/acroread-lib32.patch"
35 package() {
36   cd "$srcdir/AdobeReader/Adobe/Reader9"
38   msg2 "Installing Main Files..."
39   mkdir -p "$pkgdir/usr/lib32/acroread"
40   cp -a * "$pkgdir/usr/lib32/acroread"
42   msg2 "Installing Bin Files..."
43   mkdir -p "$pkgdir/usr/bin"
44   ln -s ../lib32/acroread/bin/acroread "$pkgdir/usr/bin"
45   install -Dm644 Resource/Shell/acroread.1.gz "$pkgdir/usr/share/man/man1/acroread.1.gz"
46   install -Dm644 Resource/Shell/acroread_tab "$pkgdir/etc/bash_completion.d/acroread"
48   msg2 "Installing Broswer Plugin..."
49   mkdir -p "$pkgdir/usr/lib/mozilla/plugins"
50   ln -s ../../../lib32/acroread/Browser/intellinux/nppdf.so "$pkgdir/usr/lib/mozilla/plugins"
51         
52   msg2 "Installing Icon Resource..."
53   install -Dm644 Resource/Support/AdobeReader.desktop "$pkgdir/usr/share/applications/acroread.desktop"
54   sed -i '/^Icon/s|AdobeReader9|acroread|' "$pkgdir/usr/share/applications/acroread.desktop"
55   install -Dm644 Resource/Icons/64x64/AdobeReader9.png "$pkgdir/usr/share/pixmaps/acroread.png"
57   msg2 "Installing License..."
58   install -Dm644 Reader/Legal/en_US/License.txt "$pkgdir/usr/share/licenses/$pkgname/License.txt"