updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / kid3-git / PKGBUILD
blobf55dcdf6ee31a0c5044ed44422351b1faede29de
1 # Maintainer: oke3 <Sekereg at gmx dot com>
3 pkgname=kid3-git
4 pkgver=20120109
5 pkgrel=1
6 pkgdesc="An MP3, Ogg/Vorbis and FLAC tag editor for KDE."
7 arch=('i686' 'x86_64')
8 url="http://kid3.sourceforge.net/"
9 license=('GPL')
10 install=$pkgname.install
11 makedepends=('automoc4' 'cmake' 'docbook-xsl' 'git')
12 depends=('id3lib' 'tunepimp' 'kdelibs' 'kdebase-runtime')
13 provides=('kid3')
14 conflicts=('kid3')
16 _gitroot="git://kid3.git.sourceforge.net/gitroot/kid3/kid3"
17 _gitname="kid3"
19 build() {
20     cd "$srcdir"
22     msg "Connecting to the GIT server...."
23     if [[ -d "$_gitname" ]]; then
24         cd "$_gitname" && git pull origin && cd "$srcdir"
25         msg "The local files are updated."
26     else
27         git clone "$_gitroot" "$_gitname"
28     fi
30     msg "GIT checkout done or server timeout"
31     msg "Starting build..."
33     rm -rf "$_gitname-build"
34     git clone "$_gitname" "$_gitname-build"
35     cd "$_gitname-build"
37     cmake -DCMAKE_INSTALL_PREFIX=/usr
38     make
41 package() {
42     cd "$srcdir/$_gitname-build"
44     make DESTDIR="$pkgdir" install