updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / soundkonverter-git / PKGBUILD
blobfbb9a45b65fb682f096d29a5b3f566c72d4d7803
1 # Maintainer: Jekyll Wu <adapte@gmail.com>
3 pkgname=soundkonverter-git
4 pkgver=20110527
5 pkgrel=1
6 pkgdesc="A KDE frontend to various audio converters"
7 arch=('i686' 'x86_64')
8 url="http://www.kde-apps.org/content/show.php?content=29024"
9 license=('GPL')
10 depends=('kdemultimedia-kioslave' 'taglib')
11 makedepends=('cmake' 'automoc4')
12 optdepends=('cdrkit: cdda2wav backend'
13             'faac: faac backend'
14             'faad2: faad backend'
15             'ffmpeg: ffmpeg backend'
16             'flac: flac backend'
17             'lame: lame backend'
18             'mplayer: mplayer backend'
19             'vorbis-tools: oggenc, oggdec backends'
20             'speex: speexenc, speexdec backends'
21             'vorbisgain: vorbisgain backend'
22             )
23 provides=('soundkonverter')
24 conflicts=('soundkonverter')
26 _gitroot="git://gitorious.org/soundkonverter/soundkonverter.git"
27 _gitname="soundkonverter"
29 build() {
31     cd "${srcdir}"
32     msg "Connecting to GIT server...."
34     if [ -d ${_gitname} ] ; then
35         cd ${_gitname} && git pull origin
36         msg "The local files are updated."
37     else
38         git clone ${_gitroot} ${_gitname}
39     fi
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"
53     cd "${srcdir}/build"
55     cmake -DCMAKE_INSTALL_PREFIX=/usr "${srcdir}/${_gitname}/src"
57     make
61 package() {
63     cd  "${srcdir}/build"
64     make DESTDIR="${pkgdir}" install