#Maintainer: George Vlahavas (vlahavas@gmail.com, gapan@zenwalk forums) pkgname=brasero pkgver=0.7.90 pkgrel=2 zenver=52 arch=i486 source=("http://download.gnome.org/sources/brasero/0.7/brasero-0.7.90.tar.bz2" "http://users.zenwalk.org/user-accounts/gapan/brasero/brasero.session" "http://users.zenwalk.org/user-accounts/gapan/brasero/zen-no-crash-on-file-not-found.patch") url="http://www.gnome.org/projects/brasero/index.html" docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "maintainers") options=('norequiredbuilder' 'keepdepfile') 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 # Change default main window size for existing users # (removed as it is causing trouble when username is not the same as homedir name) #for i in `grep '^.*:.*:[0-9][0-9][0-9][0-9]' /etc/passwd | cut -f 6 -d ':' | sed 's|/home/||'`; do # mkdir -p home/${i}/.gnome2; # cp -a etc/skel/.gnome2/brasero.session home/${i}/.gnome2/; # chown -R ${i}:users home/${i}/.gnome2; # chown ${i}:users home/${i}; # find home/${i}/.gnome2 -type d -exec chmod 755 {} \; # find home/${i}/.gnome2 -type f -exec chmod 644 {} \; #done; } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Brasero is 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/zen-no-crash-on-file-not-found.patch ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --disable-dbus --disable-playlist --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 # 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]" # Make the default window size smaller for new users (skel) mkdir -p $startdir/pkg/etc/skel/.gnome2 cp $startdir/src/brasero.session $startdir/pkg/etc/skel/.gnome2 chown root:root $startdir/pkg/etc/skel/.gnome2/brasero.session # Fix invalid character in mime-type sed -i -e "s/blank-cd:x-content/blank-cd;x-content/" $startdir/pkg/usr/share/applications/brasero.desktop }