pkgname=fuppes
pkgver=624
pkgrel=1
pkgdesc="A free, multiplatform Universal Plug and Play A/V MediaServer"
arch=('i686' 'x86_64')
url="http://fuppes.ulrich-voelkel.de/"
license=('GPL2')
#depends=('pcre' 'libxml2' 'sqlite3' 'gettext' 'taglib' 'imagemagick' 'ffmpeg' 'libmp4v2' 'lame' 'libvorbis' 'libmpcdec' 'flac' 'faad2' 'libmad')
depends=('pcre' 'libxml2' 'sqlite3' 'gettext' 'taglib' 'imagemagick' 'ffmpeg' 'libmp4v2' 'lame' 'libvorbis'  'flac' 'faad2' 'libmad')
makdepends=('pkgconfig' 'autoconf' 'subversion')
source=()
md5sums=()

_svntrunk="https://fuppes.svn.sourceforge.net/svnroot/fuppes/trunk"
_svnmod="fuppes"

build()
{
	cd ${startdir}/src

	msg "Getting sources..."
	svn co ${_svntrunk} ${_svnmod} 
	msg "Done getting sources or failed to connect to server."

	cd ${_svnmod}

	# generate ./configure
	autoreconf -vfi
	
	./configure --prefix=/usr \
	--enable-video-transcoding \
	--disable-twolame || return 1
	
	make || return 1
	make DESTDIR=$startdir/pkg install || return 1
}