updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / picard-git / PKGBUILD
blob652d3fdce4bfa1878e7095df943d4ccf4a8ecb24
1 pkgname=picard-git
2 pkgver=20111204
3 pkgrel=1
4 pkgdesc="MusicBrainz tagging application"
5 arch=('i686' 'x86_64')
6 url="http://musicbrainz.org/doc/MusicBrainz_Picard"
7 license=('GPL')
8 depends=('python2-qt' 'mutagen' 'libofa' 'ffmpeg')
9 optdepends=('libdiscid: CD-Lookup feature'
10             'chromaprint: AcoustID integration')
11 makedepends=('git')
12 provides=('picard')
13 conflicts=('picard' 'picard-qt' 'picard-bzr')
15 _gitroot=https://github.com/musicbrainz/picard.git
16 _gitname=picard
18 build() {
19     cd "$srcdir"
20     msg "Connecting to GIT server...."
22     if [[ -d "$_gitname" ]]; then
23       cd "$_gitname" && git pull origin
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 "$srcdir/$_gitname-build"
33     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34     cd "$srcdir/$_gitname-build"
36     python2 setup.py config
37     python2 setup.py build
40 package() {
41     cd "$srcdir/$_gitname-build"
42     python2 setup.py install --root=$pkgdir