#Maintainer: George Vlahavas (vlahavas~AT~gmail~DOT~com) # # libburnia packages (libburn, libisoburn, libisofs) must be installed if # you want to compile with optional support for them pkgname=brasero pkgver=2.28.3 pkgrel=2gv source=("http://download.gnome.org/sources/brasero/2.28/brasero-2.28.3.tar.bz2" "http://pnboy.pinguix.com/gapan/$pkgname/brasero.desktop" "http://pnboy.pinguix.com/gapan/$pkgname/brasero-2.26.0-nohelp.patch") url="http://www.gnome.org/projects/brasero/index.html" docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") 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------------------------------------------------------| "brasero (a CD/DVD burning application)" "Brasero is a application to burn CD/DVD for the Gnome Desktop. It is" "designed to be as simple as possible and has some unique features to" "enable users to create their discs easily and quickly." ) build() { cd $startdir/src/$pkgname-$pkgver patch -p1 < $startdir/src/brasero-2.26.0-nohelp.patch || exit 1 ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --disable-playlist --with-gconf-source="xml::/etc/gconf/gconf.xml.defaults" --disable-schemas-install --disable-scrollkeeper --disable-gtk-doc --disable-caches --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 # Set no side pane by default gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type string --set /apps/brasero/display/audio_pane EmptyView gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type string --set /apps/brasero/display/data_pane EmptyView # Disable the md5sum plugins by default, they cause trouble with some systems #gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults --type list --list-type string --set /apps/brasero/config/plugin "[local-track]" # Replace the original brasero.desktop file with a custom one # the original produces unwanted extra "Open project" right click entries mv $startdir/src/brasero.desktop $startdir/pkg/usr/share/applications # we don't need help files, we've disabled them with a patch # and --disable-gtk-doc doesn't really work rm -rf $startdir/pkg/usr/share/gnome rm -rf $startdir/pkg/usr/share/gtk-doc rm -rf $startdir/pkg/usr/share/omf }