updated on Wed Jan 11 12:00:27 UTC 2012
[aur-mirror.git] / spek-git / PKGBUILD
blob0bb7d4f8908741bb592c1636fbb206c854060798
1 # Contributor: sen <sen@archlinux.us>
3 pkgname=spek-git
4 pkgver=20110923
5 pkgrel=1
6 pkgdesc="Spek helps to analyse your audio files by showing their spectrogram."
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 depends=('gtk2>=2.14' 'ffmpeg' 'desktop-file-utils' 'hicolor-icon-theme')
10 makedepends=('git' 'pkgconfig' 'intltool' 'automake' 'vala')
11 url="http://www.spek-project.org/"
12 conflicts=('spek')
13 provides=('spek-git')
14 install=spek.install
15 source=()
16 md5sums=()
17 options=()
19 _gitroot="git://github.com/alexkay/"
20 _gitname="spek"
22 build() {
23   cd $srcdir
24   msg "Connecting to the GIT server...."
25   
26   if [[ -d $srcdir/$_gitname ]] ; then
27     cd $_gitname
28     git pull origin
29     msg "The local files are updated."
30   else
31     git clone $_gitroot$_gitname
32   fi
33   
34   msg "GIT checkout done"
35   msg "Starting make..."
37   git clone $srcdir/$_gitname $srcdir/$_gitname-build
38   cd $srcdir/$_gitname-build
40   ./autogen.sh --prefix=/usr || return 1
42   make DESTDIR=$pkgdir install || return 1
43   
44   rm -rf $srcdir/$_gitname-build