1 # Maintainer: Jekyll Wu <adapte@gmail.com>
3 pkgname=soundkonverter-git
6 pkgdesc="A KDE frontend to various audio converters"
8 url="http://www.kde-apps.org/content/show.php?content=29024"
10 depends=('kdemultimedia-kioslave' 'taglib')
11 makedepends=('cmake' 'automoc4')
12 optdepends=('cdrkit: cdda2wav backend'
15 'ffmpeg: ffmpeg backend'
18 'mplayer: mplayer backend'
19 'vorbis-tools: oggenc, oggdec backends'
20 'speex: speexenc, speexdec backends'
21 'vorbisgain: vorbisgain backend'
23 provides=('soundkonverter')
24 conflicts=('soundkonverter')
26 _gitroot="git://gitorious.org/soundkonverter/soundkonverter.git"
27 _gitname="soundkonverter"
32 msg "Connecting to GIT server...."
34 if [ -d ${_gitname} ] ; then
35 cd ${_gitname} && git pull origin
36 msg "The local files are updated."
38 git clone ${_gitroot} ${_gitname}
41 msg "GIT checkout done or server timeout"
42 msg "Starting make..."
44 rm -rf "${srcdir}/build"
46 #mkdir "${srcdir}/build" || { msg "Failed to create building folder" ; exit 1 ; }
47 #cd "${srcdir}/build" || { msg "Failed to cd into building folder" ; exit 2 ; }
49 #cmake -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) ../${_gitname}/src/ || { msg "cmake failed"; exit 3 ;}
51 mkdir "${srcdir}/build"
55 cmake -DCMAKE_INSTALL_PREFIX=/usr "${srcdir}/${_gitname}/src"
64 make DESTDIR="${pkgdir}" install