#Packager: Dimitris Tzemos pkgname=florence pkgver=0.6.3 pkgrel=2dj source=("http://sourceforge.net/projects/${pkgname}/files/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url="http://sourceforge.net/projects/${pkgname}/" options=('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------------------------------------------------------| "florence (Virtual Keyboard)" "Florence is an extensible scalable virtual keyboard" "You need it if you can't use a real hardware keyboard, for example" "because you are disabled, your keyboard is broken or because you use" "a tablet PC but you must be able to use a pointing device (as a" "mouse, a trackball, or a touchscreen)" "" "HomePage: http://florence.sourceforge.net/english.html" ) build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc \ --without-notification \ --without-at-spi \ --with-panelapplet \ --with-xtst \ --with-docs \ --disable-static \ --disable-scrollkeeper --disable-schemas-install --disable-gtktest --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg sed -i "s/^Icon=.*/Icon=florence/" $startdir/pkg/usr/share/applications/florence.desktop mkdir -p $startdir/pkg/usr/share/icons/hicolor/scalable/apps cp $startdir/pkg/usr/share/pixmaps/florence.svg $startdir/pkg/usr/share/icons/hicolor/scalable/apps/ mkdir -p $startdir/pkg/usr/share/icons/hicolor/48x48/apps convert $startdir/pkg/usr/share/pixmaps/florence.svg -resize 48x48 $startdir/pkg/usr/share/icons/hicolor/48x48/apps/florence.png # 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 }