#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com) pkgname=nautilus pkgver=2.24.2 pkgrel=1gv arch=i486 source=("http://ftp.acc.umu.se/pub/GNOME/sources/nautilus/2.24/nautilus-2.24.2.tar.bz2" "nautilus-2.24.2-nohelp.patch") docs=("readme" "install" "copying" "copying-docs" "copying.lib" "changelog*" "authors" "news" "todo" "hacking" "maintainers" "thanks") url=www.gnome.org options=('noautodotnew') doinst() { # update the mime desktop database if [ -x usr/bin/update-desktop-database ]; then usr/bin/update-desktop-database -q fi # update the mime database if [ -x usr/bin/update-mime-database ]; then usr/bin/update-mime-database usr/share/mime > /dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "nautilus (file manager and graphical shell for GNOME)" "Nautilus is the official file manager for the GNOME desktop. It allows" "to browse directories, preview files and launch applications" "associated with them. It is also responsible for handling the icons" "on the GNOME desktop. It works on local and remote filesystems." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/nautilus-2.24.2-nohelp.patch || exit 1 ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-schemas-install --disable-update-mimedb --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" --disable-gtk-doc 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 # Don't show text preview instead of text icon by default, doesn't work with Tango anyway gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type string --set /apps/nautilus/preferences/show_icon_text never # Don't calculate directory item counts by default, should make nautilus faster gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type string --set /apps/nautilus/preferences/show_directory_item_counts never # Single click to open folders by default gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type string --set /apps/nautilus/preferences/click_policy single # we don't need gtk-doc rm -rf $startdir/pkg/usr/share/gtk-doc }