summaryrefslogtreecommitdiff
path: root/libre/mate-document-viewer-libre
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-01-30 19:38:45 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-01-30 19:38:45 -0200
commit94793e4e4c280497713baa606de85045cc0b5096 (patch)
treea1beabfe1ae59611020ceedb51728631810d591e /libre/mate-document-viewer-libre
parentc3f6f76a3c5c4cc11caea64a2329a648bdc18118 (diff)
mate-document-viewer-libre: add new package on [libre]
Diffstat (limited to 'libre/mate-document-viewer-libre')
-rw-r--r--libre/mate-document-viewer-libre/PKGBUILD51
-rw-r--r--libre/mate-document-viewer-libre/mate-document-viewer.install13
2 files changed, 64 insertions, 0 deletions
diff --git a/libre/mate-document-viewer-libre/PKGBUILD b/libre/mate-document-viewer-libre/PKGBUILD
new file mode 100644
index 000000000..6557d3469
--- /dev/null
+++ b/libre/mate-document-viewer-libre/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer : Martin Wimpress <code@flexion.org>
+
+_pkgname=mate-document-viewer
+pkgname=mate-document-viewer-libre
+pkgver=1.6.2
+pkgrel=1
+pkgdesc="Simply a document viewer, with libarchive recommendation"
+url="http://mate-desktop.org"
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL')
+replaces=$_pkgname
+conflicts=$_pkgname
+provides=$_pkgname=$pkgver
+depends=('dconf' 'dbus' 'desktop-file-utils' 'gtk2' 'libmatekeyring' 'libsm'
+ 'libspectre' 'mate-icon-theme' 'poppler-glib' 'zlib')
+makedepends=('djvulibre' 'gobject-introspection' 'libgxps' 'mate-common'
+ 'mate-doc-utils' 'mate-file-manager' 'perl-xml-parser' 'texlive-bin')
+optdepends=('djvulibre: DjVu support'
+ 'libgxps: XPS support'
+ 'mate-file-manager: Document Properties extension'
+ 'p7zip: cbz and cb7 compressed comic books'
+ 'texlive-bin: DVI support'
+ 'libarchive: cbr compressed comic books')
+options=('!emptydirs')
+groups=('mate-extra')
+source=("http://pub.mate-desktop.org/releases/1.6/${_pkgname}-${pkgver}.tar.xz")
+sha1sums=('295a59e7b7babd86f42eebb2a9ac5405dd7b2997')
+install=${_pkgname}.install
+
+build() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ ./configure \
+ --prefix=/usr \
+ --libexecdir=/usr/lib/${_pkgname} \
+ --enable-gtk-doc \
+ --enable-djvu \
+ --enable-dvi \
+ --enable-t1lib \
+ --enable-pixbuf \
+ --enable-comics \
+ --enable-introspection \
+ --disable-static \
+ --disable-scrollkeeper
+ make
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+ ln -s atril "${pkgdir}/usr/bin/mate-document-viewer"
+}
diff --git a/libre/mate-document-viewer-libre/mate-document-viewer.install b/libre/mate-document-viewer-libre/mate-document-viewer.install
new file mode 100644
index 000000000..bf6781f93
--- /dev/null
+++ b/libre/mate-document-viewer-libre/mate-document-viewer.install
@@ -0,0 +1,13 @@
+post_install() {
+ glib-compile-schemas /usr/share/glib-2.0/schemas/
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}