summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuflone2015-06-13 17:59:17 +0200
committerMuflone2015-06-13 17:59:17 +0200
commit900ade177ad8b4a2909962a7f7e5660253ad13c1 (patch)
treee1386fc1dd8490ffbb6afd2a66fb096331d30255
downloadaur-900ade177ad8b4a2909962a7f7e5660253ad13c1.tar.gz
Initial import
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD59
-rw-r--r--desktop-file.patch14
-rw-r--r--foxitreader-i686.sh2
-rw-r--r--foxitreader-x86_64.sh6
-rw-r--r--foxitreader.install12
6 files changed, 120 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..013e5c46dcb
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = foxitreader
+ pkgdesc = A small, fast PDF viewer
+ pkgver = 1.1.0.20090810
+ pkgrel = 1
+ url = http://www.foxitsoftware.com/Secure_PDF_Reader/
+ install = foxitreader.install
+ arch = i686
+ arch = x86_64
+ license = custom:EULA
+ depends = desktop-file-utils
+ source = http://cdn04.foxitsoftware.com/pub/foxit/reader/desktop/linux/1.x/1.1/enu/FoxitReader-1.1.0.tar.bz2
+ source = http://cdn04.foxitsoftware.com/pub/foxit/reader/desktop/linux/1.x/1.1/enu/FoxitReader_1.1.0_i386.deb
+ source = http://www.foxitsoftware.com/Secure_PDF_Reader/eula.html
+ source = foxitreader-i686.sh
+ source = foxitreader-x86_64.sh
+ source = desktop-file.patch
+ sha256sums = 02f1ad5ad2fd516754254f349c94b8e81b57b9eb2a0315f30debdc5d7fb8dbf4
+ sha256sums = 248eab45cbb8816989d46dc3c3f150273720c69645fbbbc3c06b93983ac50653
+ sha256sums = 380830bb6ef504348000f264df80d7f6380d5b8ddd3c2151fe592d2cb582d1dd
+ sha256sums = cd70582074710360cb667d91dd677b4f074f308bc13517a879d2735a08266d96
+ sha256sums = 13856414068d9e374eed86a5a99c665b8450f7d07dd27fd9106b73d20fdd5e87
+ sha256sums = 39a709be8a1c708850834a1b215fadb11331d86404d5422e19c49248afcc6a33
+ depends_i686 = gtk2
+ depends_x86_64 = lib32-gtk2
+
+pkgname = foxitreader
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..26b73f679c3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,59 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+# Contributor: TDY <tdy@archlinux.info>
+
+pkgname=foxitreader
+pkgver=1.1.0.20090810
+pkgrel=1
+pkgdesc="A small, fast PDF viewer"
+arch=('i686' 'x86_64')
+url="http://www.foxitsoftware.com/Secure_PDF_Reader/"
+license=('custom:EULA')
+depends=('desktop-file-utils')
+depends_i686=('gtk2')
+depends_x86_64=('lib32-gtk2')
+install="${pkgname}.install"
+source=("http://cdn04.foxitsoftware.com/pub/foxit/reader/desktop/linux/1.x/${pkgver%.*.*}/enu/FoxitReader-${pkgver%.*}.tar.bz2"
+ "http://cdn04.foxitsoftware.com/pub/foxit/reader/desktop/linux/1.x/${pkgver%.*.*}/enu/FoxitReader_${pkgver%.*}_i386.deb"
+ "http://www.foxitsoftware.com/Secure_PDF_Reader/eula.html"
+ "${pkgname}-i686.sh"
+ "${pkgname}-x86_64.sh"
+ "desktop-file.patch")
+sha256sums=('02f1ad5ad2fd516754254f349c94b8e81b57b9eb2a0315f30debdc5d7fb8dbf4'
+ '248eab45cbb8816989d46dc3c3f150273720c69645fbbbc3c06b93983ac50653'
+ '380830bb6ef504348000f264df80d7f6380d5b8ddd3c2151fe592d2cb582d1dd'
+ 'cd70582074710360cb667d91dd677b4f074f308bc13517a879d2735a08266d96'
+ '13856414068d9e374eed86a5a99c665b8450f7d07dd27fd9106b73d20fdd5e87'
+ '39a709be8a1c708850834a1b215fadb11331d86404d5422e19c49248afcc6a33')
+
+prepare() {
+ bsdtar -x -f data.tar.gz
+ patch -p1 -i "desktop-file.patch"
+}
+
+package() {
+ # Install license file
+ install -m 755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -m 644 -t "${pkgdir}/usr/share/licenses/${pkgname}" eula.html
+ # Install launcher script
+ install -m 755 -d "${pkgdir}/usr/bin"
+ install -m 755 "${pkgname}-$CARCH.sh" "${pkgdir}/usr/bin/${pkgname}"
+ # Install icon and desktop files
+ install -m 755 -d "${pkgdir}/usr/share/pixmaps"
+ install -m 644 "usr/share/pixmaps/fx-icon.png" \
+ "${pkgdir}/usr/share/pixmaps/${pkgname}.png"
+ install -m 755 -d "${pkgdir}/usr/share/applications"
+ install -m 755 "usr/share/applications/Foxit-Reader.desktop" \
+ "${pkgdir}/usr/share/applications/${pkgname}.desktop"
+ # Install application files
+ cd "${pkgver%.*.*}-release"
+ install -m 755 -d "${pkgdir}/usr/lib/${pkgname}"
+ install -m 755 -t "${pkgdir}/usr/lib/${pkgname}" FoxitReader
+ install -m 644 -t "${pkgdir}/usr/lib/${pkgname}" fum.fhd fpdfcjk.bin
+ # Install localization files
+ for _lng in po/*; do
+ install -m 755 -d "${pkgdir}/usr/share/locale/${_lng#*/}/LC_MESSAGES"
+ install -m 644 -t "${pkgdir}/usr/share/locale/${_lng#*/}/LC_MESSAGES" \
+ "${_lng}/FoxitReader.mo"
+ done
+}
+
diff --git a/desktop-file.patch b/desktop-file.patch
new file mode 100644
index 00000000000..da605aa10a7
--- /dev/null
+++ b/desktop-file.patch
@@ -0,0 +1,14 @@
+--- src/usr/share/applications/Foxit-Reader.desktop.orig 2015-05-17 02:01:09.630191333 +0200
++++ src/usr/share/applications/Foxit-Reader.desktop 2015-05-17 02:01:53.756857680 +0200
+@@ -5,9 +5,9 @@
+ Type=Application
+ GenericName=Foxit PDF Reader
+ Comment=Read PDF Document
+-Exec=FoxitReader %F
++Exec=foxitreader %F
+ StartupNotify=true
+-Icon=/usr/share/pixmaps/fx-icon.png
++Icon=foxitreader
+ Terminal=false
+ Categories=GNOME;GTK;Application;Office;Viewer;
+ MimeType=application/pdf;application/x-bzpdf;application/x-gzpdf;
diff --git a/foxitreader-i686.sh b/foxitreader-i686.sh
new file mode 100644
index 00000000000..6008a5a8bb7
--- /dev/null
+++ b/foxitreader-i686.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+exec /usr/lib/foxitreader/FoxitReader "$@"
diff --git a/foxitreader-x86_64.sh b/foxitreader-x86_64.sh
new file mode 100644
index 00000000000..0b9ded8d381
--- /dev/null
+++ b/foxitreader-x86_64.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+export GTK_PATH=/usr/lib32/gtk-2.0
+export GDK_PIXBUF_MODULE=/usr/lib32/config/gdk/gdk-pixbuf.loaders
+export PANGO_RC_FILE=/usr/lib32/config/pango/pangorc
+export LD_LIBRARY_PATH="/usr/lib32:$LD_LIBRARY_PATH"
+exec /usr/lib/foxitreader/FoxitReader "$@"
diff --git a/foxitreader.install b/foxitreader.install
new file mode 100644
index 00000000000..88620003c2b
--- /dev/null
+++ b/foxitreader.install
@@ -0,0 +1,12 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
+