#Maintainer: George Vlahavas (vlahavas~AT~gmail~DOT~com)

pkgname=totem
pkgver=3.8.2
pkgrel=1gv
source=("http://ftp.acc.umu.se/pub/GNOME/sources/totem/3.8/totem-3.8.2.tar.xz" "totem-3.8.2-nohelp.patch")
docs=("readme" "install" "copying*" "changelog" "authors" "news" "todo")
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

# compile schemas
if [ -x usr/bin/glib-compile-schemas ]; then
	usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
fi
}

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"totem (a movie player that uses the gstreamer backend)"
"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-3.8.2-nohelp.patch || exit 1
	
	./configure --prefix=/usr \
		--libdir=/usr/lib${LIBDIRSUFFIX} \
		--localstatedir=/var \
		--sysconfdir=/etc \
		--disable-nautilus \
		--disable-schemas-compile \
		--build=$arch-slackware-linux

	make || return 1
	make install DESTDIR=$startdir/pkg

	rm -rf $startdir/pkg/usr/share/gtk-doc
} 
