openmoko-icon-theme-standard2: add a compat package which symlinks the new icons into hicolor
This commit is contained in:
parent
da743fb70c
commit
9ca832b991
|
@ -1,13 +1,31 @@
|
||||||
DESCRIPTION = "Standard Gtk+ icon theme for the Openmoko framework"
|
DESCRIPTION = "Standard Gtk+ icon theme for the Openmoko framework"
|
||||||
SECTION = "openmoko/base"
|
SECTION = "openmoko/base"
|
||||||
PV = "0.1.0+svnr${SRCREV}"
|
PV = "0.1.0+svnr${SRCREV}"
|
||||||
PR = "r1"
|
PR = "r2"
|
||||||
|
|
||||||
|
PACKAGE_ARCH = "all"
|
||||||
|
|
||||||
inherit openmoko2
|
inherit openmoko2
|
||||||
|
|
||||||
SRC_URI = "svn://svn.openmoko.org/trunk/src/target/OM-2007.2/artwork/;module=icons;proto=http"
|
SRC_URI = "svn://svn.openmoko.org/trunk/src/target/OM-2007.2/artwork/;module=icons;proto=http"
|
||||||
S = "${WORKDIR}/icons"
|
S = "${WORKDIR}/icons"
|
||||||
|
|
||||||
|
PACKAGES += "${PN}-compat"
|
||||||
|
|
||||||
|
FILES_${PN} = "${datadir}/icons/openmoko-standard"
|
||||||
|
FILES_${PN}-compat = "${datadir}/icons/hicolor"
|
||||||
|
|
||||||
|
do_install_append () {
|
||||||
|
mkdir --parents "${D}/${datadir}/icons/hicolor"
|
||||||
|
cd "${D}/${datadir}/icons/openmoko-standard"
|
||||||
|
FILES=`find . -type f -name moko\* -o -name openmoko*`
|
||||||
|
cd ../hicolor
|
||||||
|
for F in $FILES; do
|
||||||
|
mkdir --parents `dirname $F`
|
||||||
|
ln -s ${datadir}/icons/openmoko-standard/$F $F
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
pkg_postinst_${PN} () {
|
pkg_postinst_${PN} () {
|
||||||
if [ "x$D" != "x" ]; then
|
if [ "x$D" != "x" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -15,4 +33,9 @@ pkg_postinst_${PN} () {
|
||||||
gtk-update-icon-cache -q /usr/share/icons/openmoko-standard
|
gtk-update-icon-cache -q /usr/share/icons/openmoko-standard
|
||||||
}
|
}
|
||||||
|
|
||||||
PACKAGE_ARCH = "all"
|
pkg_postinst_${PN}-compat () {
|
||||||
|
if [ "x$D" != "x" ]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
gtk-update-icon-cache -q /usr/share/icons/hicolor
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue