#Maintainer: George Vlahavas (vlahavas~at~gmail~dot~com, gapan@zenwalk forums)

pkgname=gst-plugins-good
pkgver=0.10.15
pkgrel=2gv
arch=x86_64
source=("http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-$pkgver.tar.bz2")
docs=("about-nls" "readme" "install" "copying" "changelog" "authors" "news" "todo" "release" "requirements")
url="http://gstreamer.freedesktop.org/"
options=('noautodotnew')


slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"gst-plugins-good - a set of good-quality plug-ins under LGPL"
"GStreamer Good Plug-ins is a set of plug-ins that we consider to have"
"good quality code, correct functionality, our preferred license (LGPL"
"for the plug-in code, LGPL or LGPL-compatible for the supporting"
"library)."
)



build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-schemas-install --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

}