#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com pkgname=gnome-desktop pkgver=2.32.1 zenver=66 pkgrel=1 arch=i686 source=("http://ftp.acc.umu.se/pub/GNOME/sources/gnome-desktop/2.32/gnome-desktop-$pkgver.tar.bz2" "http://pnboy.pinguix.com/gapan/gnome/$pkgname/default.jpg" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/g/$pkgname/Zenwalk.org.desktop" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/g/$pkgname/local-defaults.path" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/g/$pkgname/zengnome-browser") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/g/$pkgname docs=("readme" "install" "copying*" "changelog" "authors" "news" "todo" "hacking" "maintainers") url=www.gnome.org options=('norequiredbuilder' 'keepdepfile' 'noautodotnew') doinst() { # Update the scrollkeeper database (Remove stale pieces) if [ -x usr/bin/scrollkeeper-update ]; then usr/bin/scrollkeeper-update > /dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "gnome-desktop - The GNOME Desktop environment" "The gnome-desktop package includes common files needed for GNOME 2" "desktop apps (Pixmaps, .desktop files and internationalization files)." ) build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --mandir=/usr/man --disable-scrollkeeper --with-omf-dir=/usr/share/omf --with-gnome-distributor=Zenwalk --disable-static make || return 1 make install DESTDIR=$startdir/pkg rm -rf $startdir/pkg/usr/share/gtk-doc # Install default background picture mkdir -p $startdir/pkg/usr/share/gnome/backgrounds cp $startdir/src/default.jpg $startdir/pkg/usr/share/gnome/backgrounds mkdir -p $startdir/pkg/etc/gconf/gconf.xml.defaults mkdir -p $startdir/pkg/etc/gconf/gconf.xml.mandatory mkdir -p $startdir/pkg/etc/gconf/gconf.xml.zenwalk mkdir -p $startdir/pkg/etc/gconf/gconf.xml.system # Set wallpaper preferences gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/background/primary_color "#8686acaccaca" gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/background/secondary_color "#7f7f7f7f7f7f" gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/background/picture_options stretched gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/background/picture_filename /usr/share/gnome/backgrounds/default.jpg gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/background/color_shading_type solid # For some reason this setting was deleted after 2.22.2, but it's still needed! gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type bool --set /desktop/gnome/background/draw_background true # More interface settings gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type boolean --set /desktop/gnome/interface/menus_have_icons true gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type boolean --set /desktop/gnome/interface/can_change_accels false gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/interface/icon_theme Zen gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/interface/gtk_theme Clearlooks # Change the default colour for the gtk color scheme gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type string --set /desktop/gnome/interface/gtk_color_scheme "fg_color:#000000000000 bg_color:#ededececebeb text_color:#1a1a1a1a1a1a base_color:#ffffffffffff selected_fg_color:#ffffffffffff selected_bg_color:#5e5e7f7fbcbc tooltip_fg_color:#000000000000 tooltip_bg_color:#f5f5f5f5b5b5" # Install local-defaults.path file mkdir -p $startdir/pkg/etc/gconf/2 cp $startdir/src/local-defaults.path $startdir/pkg/etc/gconf/2 chown -R root:root $startdir/pkg/etc/gconf/2 chmod 755 $startdir/pkg/etc/gconf/2 chmod 644 $startdir/pkg/etc/gconf/2/local-defaults.path # Install Zenwalk.org shortcut on the desktop # or rather not. It's better in the menu I think anyway and epiphany loads the zenwalk page by default. mkdir -p $startdir/pkg/root/Desktop cp $startdir/src/Zenwalk.org.desktop $startdir/pkg/root/Desktop mkdir -p $startdir/pkg/etc/skel/Desktop cp $startdir/src/Zenwalk.org.desktop $startdir/pkg/etc/skel/Desktop # Install zengnome-browser wrapper script # This is duplicated in the gnome-panel package and I remember there is a good reason for that, # although I have forgotten what exactly it is. mkdir -p $startdir/pkg/usr/bin cp $startdir/src/zengnome-browser $startdir/pkg/usr/bin chmod 755 $startdir/pkg/usr/bin/zengnome-browser chown root:root $startdir/pkg/usr/bin/zengnome-browser }