[arch-commits] Commit in libreoffice/trunk (8 files)
andyrtr at archlinux.org
andyrtr at archlinux.org
Fri May 18 09:29:32 UTC 2012
Date: Friday, May 18, 2012 @ 05:29:31
Author: andyrtr
Revision: 159212
fix mime type updates for subpackages, FS#29659
Added:
libreoffice/trunk/libreoffice-base.install
libreoffice/trunk/libreoffice-calc.install
libreoffice/trunk/libreoffice-common.install
(from rev 159211, libreoffice/trunk/libreoffice.install)
libreoffice/trunk/libreoffice-draw.install
libreoffice/trunk/libreoffice-impress.install
libreoffice/trunk/libreoffice-writer.install
Modified:
libreoffice/trunk/PKGBUILD
Deleted:
libreoffice/trunk/libreoffice.install
-----------------------------+
PKGBUILD | 7 +++++-
libreoffice-base.install | 11 +++++++++
libreoffice-calc.install | 11 +++++++++
libreoffice-common.install | 47 ++++++++++++++++++++++++++++++++++++++++++
libreoffice-draw.install | 11 +++++++++
libreoffice-impress.install | 11 +++++++++
libreoffice-writer.install | 11 +++++++++
libreoffice.install | 47 ------------------------------------------
8 files changed, 108 insertions(+), 48 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-05-18 09:16:01 UTC (rev 159211)
+++ PKGBUILD 2012-05-18 09:29:31 UTC (rev 159212)
@@ -284,7 +284,7 @@
package_libreoffice-common() {
pkgdesc="common files for LibreOffice - a productivity suite that is compatible with other major office suites"
- install=${pkgbase}.install
+ install=${pkgname}.install
depends=('libreoffice-langpack' "hunspell>=1.2.8" "python2>=2.7" "neon>=0.28.6"
'nspr' 'libsm' 'redland' 'hyphen' 'graphite' "icu>=49.1"
'hicolor-icon-theme' 'desktop-file-utils' 'shared-mime-info' 'xdg-utils' 'orbit2')
@@ -348,6 +348,7 @@
package_libreoffice-base() {
pkgdesc="GUI Spreadsheet Applicationdatabase front-end for LibreOffice. Allows creation and management of databases through a GUI."
+ install=${pkgname}.install
depends=('libreoffice-common' 'hsqldb-java')
optdepends=('libreoffice-postgresql-connector')
backup=()
@@ -399,6 +400,7 @@
package_libreoffice-calc() {
pkgdesc="Spreadsheet application for LibreOffice."
+ install=${pkgname}.install
depends=('libreoffice-common' 'lpsolve' )
optdepends=()
backup=()
@@ -421,6 +423,7 @@
package_libreoffice-draw() {
pkgdesc="Drawing Application for LibreOffice."
+ install=${pkgname}.install
depends=('libreoffice-common')
optdepends=()
backup=()
@@ -464,6 +467,7 @@
package_libreoffice-impress() {
pkgdesc="Presentation Application for LibreOffice."
+ install=${pkgname}.install
depends=('libreoffice-common')
optdepends=('mesa: for the OGLTrans extension')
backup=()
@@ -578,6 +582,7 @@
package_libreoffice-writer() {
pkgdesc="Word Processor Applicationfor LibreOffice."
+ install=${pkgname}.install
depends=('libreoffice-common' 'libwpd>=0.9.2' 'libwps' 'libxml2')
optdepends=('libwpg: library for importing and converting Corel WordPerfect(tm) Graphics images')
backup=()
Added: libreoffice-base.install
===================================================================
--- libreoffice-base.install (rev 0)
+++ libreoffice-base.install 2012-05-18 09:29:31 UTC (rev 159212)
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ update-desktop-database -q
+}
+
+post_remove() {
+ update-desktop-database -q
+}
Added: libreoffice-calc.install
===================================================================
--- libreoffice-calc.install (rev 0)
+++ libreoffice-calc.install 2012-05-18 09:29:31 UTC (rev 159212)
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ update-desktop-database -q
+}
+
+post_remove() {
+ update-desktop-database -q
+}
Copied: libreoffice/trunk/libreoffice-common.install (from rev 159211, libreoffice/trunk/libreoffice.install)
===================================================================
--- libreoffice-common.install (rev 0)
+++ libreoffice-common.install 2012-05-18 09:29:31 UTC (rev 159212)
@@ -0,0 +1,47 @@
+post_install() {
+
+xdg-icon-resource forceupdate --theme hicolor
+update-desktop-database -q
+update-mime-database usr/share/mime > /dev/null 2>&1
+
+echo " * see https://wiki.archlinux.org/index.php/LibreOffice"
+echo "-------------------------------------------------------------------"
+echo "LibreOffice has been split into several packages:"
+echo "- libreoffice-common"
+echo "- libreoffice-{base,calc,draw,impress,math,writer} - frontend applications"
+echo "- libreoffice-{gnome,kde4} - desktop integration plugins"
+echo "- libreoffice-{sdk,sdk-doc} - add-on and doc for programming using"
+echo " the LibreOffice APIs and for creating"
+echo " extensions (UNO components)."
+echo "-------------------------------------------------------------------"
+echo " * you need to install at least one libreoffice-langpack"
+echo " * you may want to pacman -Ss libreoffice-extensions"
+echo " to see what additional extensions are prepared to install"
+echo " * it's recommended to install {hunspell,mythes,hyphen}-xx pkg
+ for spell checking"
+echo " * make sure you have installed some ttf font (ttf-dejavu recommended)"
+}
+
+post_upgrade() {
+# post_install $1
+xdg-icon-resource forceupdate --theme hicolor
+update-desktop-database -q
+update-mime-database usr/share/mime > /dev/null 2>&1
+ if [ "`vercmp $2 3.4.2rc1`" -lt 0 ]; then
+ # important upgrade notice
+ echo "LibreOffice has been split into several packages:"
+ echo "- libreoffice-common"
+ echo "- libreoffice-{base,calc,draw,impress,math,writer} - frontend applications"
+ echo "- libreoffice-{gnome,kde4} - desktop integration plugins"
+ echo "- libreoffice-{sdk,sdk-doc} - add-on and doc for programming using"
+ echo " the LibreOffice APIs and for creating"
+ echo " extensions (UNO components)."
+ echo "Now you need to install at least one libreoffice-langpack!"
+ fi
+}
+
+post_remove() {
+update-desktop-database -q
+xdg-icon-resource forceupdate --theme hicolor
+update-mime-database usr/share/mime > /dev/null 2>&1
+}
Added: libreoffice-draw.install
===================================================================
--- libreoffice-draw.install (rev 0)
+++ libreoffice-draw.install 2012-05-18 09:29:31 UTC (rev 159212)
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ update-desktop-database -q
+}
+
+post_remove() {
+ update-desktop-database -q
+}
Added: libreoffice-impress.install
===================================================================
--- libreoffice-impress.install (rev 0)
+++ libreoffice-impress.install 2012-05-18 09:29:31 UTC (rev 159212)
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ update-desktop-database -q
+}
+
+post_remove() {
+ update-desktop-database -q
+}
Added: libreoffice-writer.install
===================================================================
--- libreoffice-writer.install (rev 0)
+++ libreoffice-writer.install 2012-05-18 09:29:31 UTC (rev 159212)
@@ -0,0 +1,11 @@
+post_install() {
+ update-desktop-database -q
+}
+
+post_upgrade() {
+ update-desktop-database -q
+}
+
+post_remove() {
+ update-desktop-database -q
+}
Deleted: libreoffice.install
===================================================================
--- libreoffice.install 2012-05-18 09:16:01 UTC (rev 159211)
+++ libreoffice.install 2012-05-18 09:29:31 UTC (rev 159212)
@@ -1,47 +0,0 @@
-post_install() {
-
-xdg-icon-resource forceupdate --theme hicolor
-update-desktop-database -q
-update-mime-database usr/share/mime > /dev/null 2>&1
-
-echo " * see https://wiki.archlinux.org/index.php/LibreOffice"
-echo "-------------------------------------------------------------------"
-echo "LibreOffice has been split into several packages:"
-echo "- libreoffice-common"
-echo "- libreoffice-{base,calc,draw,impress,math,writer} - frontend applications"
-echo "- libreoffice-{gnome,kde4} - desktop integration plugins"
-echo "- libreoffice-{sdk,sdk-doc} - add-on and doc for programming using"
-echo " the LibreOffice APIs and for creating"
-echo " extensions (UNO components)."
-echo "-------------------------------------------------------------------"
-echo " * you need to install at least one libreoffice-langpack"
-echo " * you may want to pacman -Ss libreoffice-extensions"
-echo " to see what additional extensions are prepared to install"
-echo " * it's recommended to install {hunspell,mythes,hyphen}-xx pkg
- for spell checking"
-echo " * make sure you have installed some ttf font (ttf-dejavu recommended)"
-}
-
-post_upgrade() {
-# post_install $1
-xdg-icon-resource forceupdate --theme hicolor
-update-desktop-database -q
-update-mime-database usr/share/mime > /dev/null 2>&1
- if [ "`vercmp $2 3.4.2rc1`" -lt 0 ]; then
- # important upgrade notice
- echo "LibreOffice has been split into several packages:"
- echo "- libreoffice-common"
- echo "- libreoffice-{base,calc,draw,impress,math,writer} - frontend applications"
- echo "- libreoffice-{gnome,kde4} - desktop integration plugins"
- echo "- libreoffice-{sdk,sdk-doc} - add-on and doc for programming using"
- echo " the LibreOffice APIs and for creating"
- echo " extensions (UNO components)."
- echo "Now you need to install at least one libreoffice-langpack!"
- fi
-}
-
-post_remove() {
-update-desktop-database -q
-xdg-icon-resource forceupdate --theme hicolor
-update-mime-database usr/share/mime > /dev/null 2>&1
-}
More information about the arch-commits
mailing list