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

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

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
}