updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / kid3-qt-git / PKGBUILD
blobf533c6007da761ae5433444880510db9c5896cba
1 # Maintainer: oke3 <Sekereg at gmx dot com>
3 pkgname=kid3-qt-git
4 pkgver=20120109
5 pkgrel=1
6 pkgdesc="An MP3, Ogg/Vorbis and FLAC tag editor (without KDE dependencies)"
7 arch=('i686' 'x86_64')
8 url="http://kid3.sourceforge.net/"
9 license=('GPL')
10 install=$pkgname.install
11 makedepends=('cmake' 'docbook-xsl' 'git')
12 depends=('id3lib' 'tunepimp' 'qt')
13 conflicts=('kid3-qt')
15 _gitroot="git://kid3.git.sourceforge.net/gitroot/kid3/kid3"
16 _gitname="kid3-qt"
18 build() {
19     cd "$srcdir"
21     msg "Connecting to the GIT server...."
22     if [[ -d "$_gitname" ]]; then
23         cd "$_gitname" && git pull origin && cd "$srcdir"
24         msg "The local files are updated."
25     else
26         git clone "$_gitroot" "$_gitname"
27     fi
29     msg "GIT checkout done or server timeout"
30     msg "Starting build..."
32     rm -rf "$_gitname-build"
33     git clone "$_gitname" "$_gitname-build"
34     cd "$_gitname-build"
36     cmake -DCMAKE_INSTALL_PREFIX=/usr \
37         -DWITH_KDE=OFF \
38         -DWITH_PHONON=OFF \
39         -DWITH_DBUS=OFF \
40         -DDOCBOOK_XSL_DIR=/usr/share/xml/docbook/xsl-stylesheets-1.75.2/
41     make
44 package() {
45     cd "$srcdir/$_gitname-build"
47     make DESTDIR="$pkgdir" install