#Packager: George Vlahavas <vlahavas~at~gmail~dot~com>

pkgname=soundconverter
pkgver=1.5.4
pkgrel=1gv
source=(http://download.berlios.de/soundconverter/soundconverter-$pkgver.tar.gz)
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://soundconverter.berlios.de

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------------------------------------------------------|
"soundconverter (Convert sound files to other formats)"
"A simple sound converter application for the GNOME environment. It"
"reads anything the GStreamer library can read, and writes WAV, FLAC,"
"MP3, and Ogg Vorbis files."
)


build() {
	cd $startdir/src/$pkgname-$pkgver
	./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} --localstatedir=/var --sysconfdir=/etc --build=$arch-slackware-linux
	make || return 1
	make install DESTDIR=$startdir/pkg

	sed -i "/Name=No name/d" $startdir/pkg/usr/share/applications/soundconverter.desktop
	sed -i "/GenericName\[en_US\]=/d" $startdir/pkg/usr/share/applications/soundconverter.desktop
}