summaryrefslogtreecommitdiff
path: root/recipes/angstrom/angstrom-gnome-icon-theme-enable.bb
blob: 329a4d6569dad22a4fcea58fc28965f0f6c9b3be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
DESCRIPTION = "Enable gnome-icon-theme in gtkrc"
LICENSE = "MIT"

RDEPENDS_${PN} = "gnome-icon-theme"
PR = "r1"

ALLOW_EMPTY_${PN} = "1"
PACKAGE_ARCH = "all"

pkg_postinst() {
#!/bin/sh
mkdir -p $D${sysconfdir}/gtk-2.0
touch $D${sysconfdir}/gtk-2.0/gtkrc
sed -i /gtk-icon-theme-name/d $D${sysconfdir}/gtk-2.0/gtkrc
echo 'gtk-icon-theme-name = "gnome"' >> $D${sysconfdir}/gtk-2.0/gtkrc
}