updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / acroread-de / PKGBUILD
blobeff3aa88aeb44db52fe3ba8ea2f3279c23d36313
1 # Maintainer: Christoph Drexler <chrdr at gmx dot at>
2 # Contributor: Alexander Fehr <pizzapunk gmail com>
3 # Contributor: Jose Valecillos <valecillosjg (at) gmail (dot) com>
4 # Contributor: Malte Rabenseifner <malte@zearan.de>
5 # Contributor: Dogukan Korkmazturk <d.korkmazturk@gmail.com>
7 pkgname=acroread-de
8 pkgver=9.4.2
9 pkgrel=1
10 pkgdesc="Adobe Reader is a PDF file viewer - german version / deutschsprachige Version"
11 arch=('i686' 'x86_64')
12 url="http://www.adobe.com/de/products/reader/"
13 license=('custom')
14 depends=('desktop-file-utils' 'libidn')
16 if [[ "$CARCH" == 'i686' ]]; then
17         depends+=('atk' 'fontconfig' 'freetype2' 'gcc-libs' 'gdk-pixbuf2' 'glib2' 'glibc' 'gtk2' 'libgl' 'libx11' 'libxext' 'libxml2' 'libxt' 'mesa' 'pango' 'zlib')
18 else
19         depends+=('lib32'-{'atk','fontconfig','freetype2','gcc-libs','gdk-pixbuf2','glib2','glibc','gtk2','libgl','libx11','libxext','libxml2','libxt','mesa','pango','zlib'})
22 replaces=('bin32-acroread-de')
23 conflicts=('acroread')
24 options=('!strip')
25 install=acroread-de.install
26 source=(ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/$pkgver/deu/AdbeRdr$pkgver-1_i486linux_deu.tar.bz2)
27 md5sums=('b3219924f6d38ca37e0e52e41bef1578')
29 build() {
30         true
33 package() {
34         cd "$srcdir/AdobeReader/"
35         bsdtar -xf COMMON.TAR
36         bsdtar -xf ILINXR.TAR
38         cd "$srcdir/AdobeReader/Adobe/Reader9/"
40         mkdir -p "$pkgdir/usr/lib/acroread"
41         cp -a * "$pkgdir/usr/lib/acroread"
43         mkdir -p "$pkgdir/usr/bin"
44         ln -s /usr/lib/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"
47         # workaround for bash-completion according to https://bugs.archlinux.org/task/22807
48         sed -i "s/_filedir/_filedir_acroread/" "$pkgdir/etc/bash_completion.d/acroread"
50         mkdir -p "$pkgdir/usr/lib/mozilla/plugins"
51         ln -s /usr/lib/acroread/Browser/intellinux/nppdf.so "$pkgdir/usr/lib/mozilla/plugins"
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         install -Dm644 Reader/Legal/de_DE/License.txt "$pkgdir/usr/share/licenses/acroread-de/License.txt"