updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / foxitreader / PKGBUILD
blob0002b3ad0c0405256fad3a0375b419a914d48df4
1 # Maintainer: TDY <tdy@gmx.com>
3 pkgname=foxitreader
4 pkgver=1.1
5 pkgrel=5
6 pkgdesc="A small, fast PDF viewer"
7 arch=('i686' 'x86_64')
8 url="http://www.foxitsoftware.com/pdf/desklinux/"
9 license=('custom')
10 depends=('desktop-file-utils' 'gtk2' 'sqlite3')
11 [[ $CARCH = x86_64 ]] && depends=('desktop-file-utils' 'lib32-gtk2' 'lib32-libxdamage' 'lib32-sqlite3')
12 install=fr.install
13 source=(http://mirrors.foxitsoftware.com/pub/foxit/reader/desktop/linux/1.x/$pkgver/enu/FoxitReader-$pkgver.0.tar.bz2
14         http://www.foxitsoftware.com/pdf/rd_eula.htm
15         fr.desktop fr-i686.launcher fr-x86_64.launcher fr.png)
16 md5sums=('585d2fd105a221c78e89607039f17126'
17          '53853cd872ac7e7fde9676c210f1a473'
18          '21e108c58effa2ed69c74fbbd2af1454'
19          'd21a323e4d729473072b50adda0ed329'
20          'f05f459c47269e62620a6f9cd1cc74c1'
21          '9dbaa8ac779463948c321fdb0d5b4725')
23 build() {
24   cd "$srcdir/$pkgver-release"
25   install -Dm755 FoxitReader "$pkgdir/usr/lib/$pkgname/FoxitReader"
26   install -Dm644 fum.fhd "$pkgdir/usr/lib/$pkgname/fum.fhd"
27   install -Dm644 fpdfcjk.bin "$pkgdir/usr/lib/$pkgname/fpdfcjk.bin"
29   for _lng in po/*; do
30     install -Dm644 $_lng/FoxitReader.mo \
31       "$pkgdir/usr/share/locale/${_lng#*/}/LC_MESSAGES/FoxitReader.mo"
32   done
34   install -Dm644 ../fr.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
35   install -Dm644 ../fr.desktop "$pkgdir/usr/share/applications/$pkgname.desktop"
36   install -Dm644 ../rd_eula.htm "$pkgdir/usr/share/licenses/$pkgname/EULA.htm"
37   install -Dm755 ../fr-$CARCH.launcher "$pkgdir/usr/bin/$pkgname"
38   ln -sf $pkgname "$pkgdir/usr/bin/fr"