Use the install path when generating icon caches

git-svn-id: https://svn.o-hand.com/repos/poky@222 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Ross Burton 2006-01-17 10:00:07 +00:00
parent 33bc34b8db
commit 3f4950c6c7
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ RDEPENDS = "gnome-vfs-plugin-file"
RRECOMMENDS = "gnome-vfs-plugin-http"
MAINTAINER = "Chris Lord <chris@openedhand.com>"
DESCRIPTION = "Contacts is an address-book application."
PR = "r3"
PR = "r4"
PV = "0.1+svn-${CVSDATE}"
@ -34,6 +34,6 @@ FILES_${PN} += "${datadir}/icons/hicolor/48x48/apps/oh-contacts.png \
${datadir}/icons/hicolor/index.theme"
pkg_postinst_${PN} () {
gtk-update-icon-cache /usr/share/icons/hicolor
gtk-update-icon-cache $D/usr/share/icons/hicolor
}

View File

@ -4,7 +4,7 @@ DEPENDS = "glib-2.0 gtk+ libglade eds-dbus"
MAINTAINER = "Chris Lord <chris@openedhand.com>"
DESCRIPTION = "Dates is a calendar application."
PR = "r3"
PR = "r4"
PV = "0.0cvs${CVSDATE}"
S = "${WORKDIR}/${PN}"
@ -18,6 +18,6 @@ FILES_${PN} += "${datadir}/icons/hicolor/48x48/apps/oh-dates.png"
pkg_postinst_${PN} () {
if [ "x$D" != "x" ]; then
gtk-update-icon-cache /usr/share/icons/hicolor
gtk-update-icon-cache $D/usr/share/icons/hicolor
fi
}