updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / rtspeccy-git / PKGBUILD
blob1514bb31f5a00aced1c7529548a52e3f71794812
1 # Maintainer: Army <uli armbruster who uses the google mail service>
3 pkgname=rtspeccy-git
4 pkgver=20110630
5 pkgrel=1
6 pkgdesc="Real time spectrum analyzer (audio)"
7 arch=('i686' 'x86_64')
8 url="http://www.uninformativ.de/projects/?q=rtspeccy"
9 license=(GPL3)
10 depends=('glut' 'alsa-lib' 'fftw')
11 makedepends=('git')
13 _gitname="rtspeccy"
14 _gitroot="https://github.com/vain/${_gitname}.git"
16 build() {
17         cd "${srcdir}"
18         msg "Connecting to GIT server...."
19         
20         if [ -d ${_gitname} ] ; then
21                 cd ${_gitname} && git pull origin
22                 msg "The local files are updated."
23         else
24                 git clone ${_gitroot} ${_gitname}
25         fi
26         msg "GIT checkout done or server timeout"
27         msg "Starting make..."
29         rm -rf "${srcdir}/${_gitname}-build"
30         cp -a "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
32         cd "${srcdir}/${_gitname}-build"
33         if test -e $startdir/config.h
34         then
35                 msg "use custom config.h"
36                 cp ${startdir}/config.h .
37         else
38                 msg "use example config.h"
39                 cp config.h.example config.h
40         fi
41         make
44 package() {
45         install -Dm755 "${srcdir}/${_gitname}-build/${_gitname}" "${pkgdir}/usr/bin/${_gitname}"