From 342e9e9bf91625bf6f0102fb7bbc652dea222064 Mon Sep 17 00:00:00 2001 From: Perberos Date: Wed, 9 Nov 2011 18:33:05 -0300 Subject: adding archlinux PKGBUILD --- distro/archlinux/PKGBUILD | 39 +++++++++++++++++++++++++++ distro/archlinux/mate-document-viewer.install | 28 +++++++++++++++++++ 2 files changed, 67 insertions(+) create mode 100644 distro/archlinux/PKGBUILD create mode 100644 distro/archlinux/mate-document-viewer.install (limited to 'distro/archlinux') diff --git a/distro/archlinux/PKGBUILD b/distro/archlinux/PKGBUILD new file mode 100644 index 00000000..a9518f52 --- /dev/null +++ b/distro/archlinux/PKGBUILD @@ -0,0 +1,39 @@ +pkgname=mate-document-viewer +pkgver=2011.08.31 +pkgrel=2 +pkgdesc="Simply a document viewer" +url="http://projects.gnome.org/evince/" +arch=('i686' 'x86_64') +license=('GPL') +depends=('gtk2' 'libspectre' 'gsfonts' 'poppler-glib' 'djvulibre' 'mate-icon-theme' + 't1lib' 'libmatekeyring' 'desktop-file-utils') # 'dconf' 'gsettings-desktop-schemas' +makedepends=('mate-doc-utils' 'mate-file-manager' 'texlive-bin' 'intltool' 'gobject-introspection') +optdepends=('texlive-bin: DVI support') +groups=('mate-extra') +install=mate-document-viewer.install +options=('!libtool' '!emptydirs') +source=(http://sourceforge.net/projects/matede/files/${pkgver}/${pkgname}.tar.gz/download) +sha256sums=('4adbcfab482edaa5e873131421ee27cd7d90e2a9745acf64f90de7d8725a4583') + +build() { + cd "${srcdir}/${pkgname}" + + ./autogen.sh --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --libexecdir=/usr/lib/${pkgname} \ + --disable-static --enable-caja \ + --enable-pdf --enable-tiff \ + --enable-djvu --enable-dvi \ + --enable-t1lib --enable-comics \ + --disable-scrollkeeper \ + --enable-introspection || return 1 + make || return 1 +} + +package() { + cd "${srcdir}/${pkgname}" + make MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install || return 1 + + install -m755 -d "${pkgdir}/usr/share/mateconf/schemas" + mateconf-merge-schema "${pkgdir}/usr/share/mateconf/schemas/${pkgname}.schemas" --domain ${pkgname} ${pkgdir}/etc/mateconf/schemas/*.schemas + rm -f ${pkgdir}/etc/mateconf/schemas/*.schemas +} diff --git a/distro/archlinux/mate-document-viewer.install b/distro/archlinux/mate-document-viewer.install new file mode 100644 index 00000000..2079c0d5 --- /dev/null +++ b/distro/archlinux/mate-document-viewer.install @@ -0,0 +1,28 @@ +pkgname=mate-document-viewer + +post_install() { + usr/sbin/mateconfpkg --install ${pkgname} + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + + update-desktop-database -q + + update-mime-database usr/share/mime > /dev/null +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/mateconfpkg --uninstall ${pkgname} +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q + update-mime-database usr/share/mime > /dev/null +} -- cgit v1.2.1