[arch-commits] Commit in kdeutils/trunk (PKGBUILD kdeutils-okteta.install)
Andrea Scarpino
andrea at archlinux.org
Sat Oct 2 17:43:06 UTC 2010
Date: Saturday, October 2, 2010 @ 13:43:06
Author: andrea
Revision: 92990
add kdeutils-okteta to update mime-database after okteta installation
Added:
kdeutils/trunk/kdeutils-okteta.install
Modified:
kdeutils/trunk/PKGBUILD
-------------------------+
PKGBUILD | 4 ++--
kdeutils-okteta.install | 12 ++++++++++++
2 files changed, 14 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2010-10-02 17:41:49 UTC (rev 92989)
+++ PKGBUILD 2010-10-02 17:43:06 UTC (rev 92990)
@@ -142,7 +142,7 @@
pkgdesc='Hex Editor'
depends=('kdebase-runtime')
url="http://kde.org/applications/utilities/okteta"
- install='kdeutils.install'
+ install='kdeutils-okteta.install'
cd $srcdir/build/okteta
make DESTDIR=$pkgdir install
cd $srcdir/build/doc/okteta
@@ -156,7 +156,7 @@
cd $srcdir/build/printer-applet
make DESTDIR=$pkgdir install
- # fix python 2.7 path
+ # Use the python2 executable
find "${pkgdir}" -name '*.py' | xargs sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|'
}
Added: kdeutils-okteta.install
===================================================================
--- kdeutils-okteta.install (rev 0)
+++ kdeutils-okteta.install 2010-10-02 17:43:06 UTC (rev 92990)
@@ -0,0 +1,12 @@
+post_install() {
+ xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+ update-mime-database usr/share/mime &> /dev/null
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}
More information about the arch-commits
mailing list