updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / easytag-git / PKGBUILD
blob5145c0e4256455bdd3bbe532bdbeebe943a686fe
1 # $Id: PKGBUILD 71340 2010-03-06 18:44:25Z andrea $
2 # Maintainer:  Bernd Helm <AUR user raw>
4 pkgname=easytag-git
5 pkgver=20110216
6 pkgrel=1
7 pkgdesc="Utility for viewing, editing and writing ID3 tags of your MP3 files - git version with patches"
8 arch=('i686' 'x86_64')
9 license=('GPL')
10 url="https://github.com/stsquad/easytag"
11 depends=('id3lib' 'libid3tag' 'gtk2' 'libvorbis' 'flac' 'libmp4v2' 'speex' 'wavpack')
12 makedepends=('git')
13 conflicts=('easytag')
15 _gitroot="http://github.com/stsquad/easytag.git"
16 _gitname="easytag"
19 build() {
20   
21   cd ${srcdir}
22   msg "Connecting to GIT server...."
24   if [ -d "${srcdir}/${_gitname}" ] ; then
25     ( cd ${_gitname} && git pull --rebase )
26   else
27     git clone ${_gitroot}
28   fi
30   rm -rf ${_gitname}-build
31   git clone ${_gitname} ${_gitname}-build
32   cd ${_gitname}-build
33     
34 msg "GIT checkout done or server timeout"
35   msg "Starting make..."
37   ./autogen.sh
38   ./configure --prefix=/usr
39   make -j4 || return 1
42 package() {
43   cd ${srcdir}/${_gitname}-build
44   make DESTDIR=${pkgdir} install
46   # Remove directory mimetype
47   sed '/^MimeType=/ s@;x-directory/normal;@;@' \
48     -i ${pkgdir}/usr/share/applications/easytag.desktop