#Packager: Tim Beech <tim~dot~beech~AT~gmail~dot~com>

pkgname=gnac
pkgver=0.2.4.1
pkgrel=1tjb
#arch=noarch
source=(http://downloads.sourceforge.net/project/gnac/gnac/gnac-0.2.4.1/gnac-0.2.4.1.tar.bz2)
sourcetemplate=http://people.salixos.org/mimosa/packages/$pkgname/$pkgver/
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=http://gnac.sourceforge.net
#dotnew=()
#CFLAGS=
#CXXFLAGS=
#options=('noextract')

doinst() {
# Update the scrollkeeper database (Remove stale pieces)
if [ -x /usr/bin/scrollkeeper-update ]; then
        /usr/bin/scrollkeeper-update > /dev/null 2>&1
fi
# compile schemas
if [ -x /usr/bin/glib-compile-schemas ]; then
        /usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas > /dev/null 2>&1
fi
}


slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"gnac (audio converter for Gnome)"
"Gnac is an easy to use audio conversion program for the Gnome desktop."
"It is designed to be powerful but simple! It provides easy audio files"
"conversion between all GStreamer supported audio formats."
)


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