#Maintainer: George Vlahavas (vlahavas~AT~gmail~DOT~com, gapan@zenwalk forums) pkgname=totem pkgver=2.24.3 zenver=54 pkgrel=3 arch=i486 source=("http://pnboy.pinguix.com/gapan/gnome/$pkgname/totem-2.24.3.r5874.tar.bz2" "http://pnboy.pinguix.com/gapan/gnome/$pkgname/totem-2.24.3-nohelp.patch") sourcetemplate=http://pnboy.pinguix.com/gapan/gnome/$pkgname docs=("readme" "install" "copying*" "changelog" "authors" "news" "todo") url=www.gnome.org options=('norequiredbuilder' 'keepdepfile' '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------------------------------------------------------| "totem - a movie player that uses the gstreamer" "Totem is the official movie player of the GNOME desktop environment." "This package is build using the gstreamer backend. Totem features a" "playlist, a full-screen mode, seek and volume controls, as well as" "keyboard navigation. It also provides thumbnailer functionality to" "file managers like nautilus." ) build() { cd $startdir/src/totem-$pkgver patch -p1 < $startdir/src/totem-2.24.3-nohelp.patch ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --enable-gtk --enable-python --enable-browser-plugins --disable-scrollkeeper --disable-easy-codec-installation --enable-nautilus --disable-static --disable-schemas-install --with-omf-dir=/usr/share/omf --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" 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 # Disable youtube plugin by default (doesn't work with gstreamer) #gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type boolean --set /apps/totem/plugins/youtube/active true rm -rf $startdir/pkg/usr/lib/totem/plugins/youtube/ # Remove help files (we removed the menu entry anyway) rm -rf $startdir/pkg/usr/share/gnome }