diff options
author | Perberos <[email protected]> | 2011-11-21 03:41:10 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-11-21 03:41:10 -0300 |
commit | ce691afd9a4dce44991e80263cbd392cf513f48c (patch) | |
tree | 70086f6766f1af0d357e85ab4fe61a899b6badcc /distro/archlinux | |
parent | dbf946f89a287b5b930ce5618840e1902d04b800 (diff) | |
download | atril-ce691afd9a4dce44991e80263cbd392cf513f48c.tar.bz2 atril-ce691afd9a4dce44991e80263cbd392cf513f48c.tar.xz |
tag
Diffstat (limited to 'distro/archlinux')
-rw-r--r-- | distro/archlinux/PKGBUILD | 18 | ||||
-rw-r--r-- | distro/archlinux/mate-document-viewer.install | 20 |
2 files changed, 21 insertions, 17 deletions
diff --git a/distro/archlinux/PKGBUILD b/distro/archlinux/PKGBUILD index be6645c7..d0934c9e 100644 --- a/distro/archlinux/PKGBUILD +++ b/distro/archlinux/PKGBUILD @@ -1,13 +1,13 @@ pkgname=mate-document-viewer -pkgver=2011.11.09 -pkgrel=1 +pkgver=2011.11.21 +pkgrel=3 pkgdesc="Simply a document viewer" url="https://github.com/perberos/mate-document-viewer" 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') + 't1lib' 'libmatekeyring' 'desktop-file-utils' 'texlive-bin') # 'dconf' 'gsettings-desktop-schemas' +makedepends=('mate-doc-utils' 'mate-file-manager' 'intltool' 'gobject-introspection') optdepends=('texlive-bin: DVI support') groups=('mate-extra') install=mate-document-viewer.install @@ -18,10 +18,11 @@ sha256sums=('98f9d51bf648b199c80d1fba00fa56e99c7ba10d40c23422913f00c9cec84ef9') build() { cd "${srcdir}/${pkgname}" - ./autogen.sh --prefix=/usr \ + ./autogen.sh \ + --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ - --libexecdir=/usr/lib/${pkgname} \ + --libexecdir=/usr/lib/mate-document-viewer \ --disable-static \ --enable-caja \ --enable-pdf \ @@ -31,7 +32,8 @@ build() { --enable-t1lib \ --enable-comics \ --disable-scrollkeeper \ - --enable-introspection || return 1 + --enable-introspection \ + --disable-schemas-install || return 1 make || return 1 } @@ -39,6 +41,8 @@ package() { cd "${srcdir}/${pkgname}" make MATECONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install || return 1 + ln -s atril ${pkgdir}/usr/bin/mate-document-viewer + 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 index 2079c0d5..cb30f7de 100644 --- a/distro/archlinux/mate-document-viewer.install +++ b/distro/archlinux/mate-document-viewer.install @@ -1,28 +1,28 @@ pkgname=mate-document-viewer post_install() { - usr/sbin/mateconfpkg --install ${pkgname} - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + usr/sbin/mateconfpkg --install ${pkgname} + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor - update-desktop-database -q + update-desktop-database -q - update-mime-database usr/share/mime > /dev/null + update-mime-database usr/share/mime > /dev/null } pre_upgrade() { - pre_remove $1 + pre_remove $1 } post_upgrade() { - post_install $1 + post_install $1 } pre_remove() { - usr/sbin/mateconfpkg --uninstall ${pkgname} + 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 + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q + update-mime-database usr/share/mime > /dev/null } |