#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com pkgname=libgnomekbd pkgver=2.32.0 zenver=66 pkgrel=1 arch=i486 source=("http://ftp.acc.umu.se/pub/GNOME/sources/libgnomekbd/2.32/libgnomekbd-$pkgver.tar.bz2" "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/g/$pkgname/flags.tar.gz") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/g/$pkgname docs=("readme*" "install" "copying*" "changelog*" "authors" "news" "todo") url=www.gnome.org options=('norequiredbuilder' 'keepdepfile' 'noautodotnew') slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "libgnomekbd - GNOME Keyboard API Library" "libgnomekbd was born from libgswitchit and libkbdraw (used in" "gnome-applets and gnome-control-center). These virtual modules" "have been replaced with libgnomekbd." ) build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \ --disable-schemas-install --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" \ --disable-static make || return 1 make install DESTDIR=$startdir/pkg # gconf stuff export GCONF_CONFIG_SOURCE="xml::$startdir/pkg/etc/gconf/gconf.xml.defaults" if [ -d $startdir/pkg/etc/gconf/schemas ]; then install -v -d -m755 $startdir/pkg/etc/gconf/gconf.xml.defaults SCHEMAS=$startdir/pkg/etc/gconf/schemas for schema in $SCHEMAS/*.schemas; do gconftool-2 --makefile-install-rule $schema done # Reset / Verify correct permissions ( cd $startdir/pkg/etc/gconf ; find . -type d -exec chmod 755 {} \; ) ( cd $startdir/pkg/etc/gconf ; find . -type f -exec chmod 644 {} \; ) fi # Install flags and set them on by default in the language indicator panel applet mkdir -p $startdir/pkg/usr/share/pixmaps cp -a $startdir/src/flags $startdir/pkg/usr/share/pixmaps cd $startdir/pkg/usr/share/pixmaps/flags ln -s gr.png el.png gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type boolean --set /desktop/gnome/peripherals/keyboard/indicator/showFlags true # Set default keyboard repeat settings gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type boolean --set /desktop/gnome/peripherals/keyboard/repeat true gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type integer --set /desktop/gnome/peripherals/keyboard/delay 357 gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type integer --set /desktop/gnome/peripherals/keyboard/rate 57 }