IGNOREPATH=/etc:/home:/var:/dev:/boot:/root:/tmp:/usr/local:/bin:/sbin:/mnt:/usr/src
STRIPLIB=y
STRIPBIN=y

VERSION=2.0.0
PROGNAME="GNOME Audio $VERSION"
DESC="\
gnome-audio                                                            \n\
                                                                       \n\
This package contains extra sound files useful for customizing the     \n\
sounds that the GNOME desktop environment makes.  If you use the       \n\
GNOME desktop environment, you may want to install this package of     \n\
complementary sounds."

BUILD=1
MAINTAINER="Mark Post <mark.post@eds.com>"
SOURCE=ftp://ftp.gnome.org/pub/GNOME/stable/sources/
PKGNAME=gnome-audio-$VERSION-noarch-$BUILD
TAG=OPT

compile() {
   tar -yxvf $CWD/gnome-audio-$VERSION.tar.bz2
   cd gnome-audio-$VERSION/sounds/
   chown -R root.root .
   find . -perm 666 -exec chmod 644 {} \;
   find . -perm 664 -exec chmod 644 {} \;

   # There is nothing in this package to compile
}

install() {
   make install prefix=/package-gnome-audio/usr

   cd ..
   mkdir -p /package-gnome-audio/usr/doc/gnome-audio-$VERSION
   cp -a README /package-gnome-audio/usr/doc/gnome-audio-$VERSION
}

attributes() { 
   find $PKG/package-gnome-audio/usr/share/sounds -type f | xargs chmod 644
}

special() {
   cd $PKG
   mv package-gnome-audio/* ./
   rmdir package-gnome-audio/

   cd $CTL
   cat $CWD/slack-desc >slack-desc

   sed -e 's%package-gnome-audio/%%g' doinst.sh > doinst.sh.new
   cat doinst.sh.new > doinst.sh
   rm doinst.sh.new
}

