updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gst-spectrumdump / PKGBUILD
blob85066b778907f63d6f856ee23a4930299881618b
1 # Maintainer: Scott Garrett <wintervenom@gmail.com>
3 pkgname=gst-spectrumdump
4 pkgver=20111005
5 pkgrel=1
6 pkgdesc="Dumps, scales, and amplifies spectrum magnitudes from audio input to stdout/callback."
7 arch=('any')
8 url="http://github.com/Wintervenom/gst-spectrumdump"
9 depends=('python2' 'gstreamer0.10-python' 'gstreamer0.10-good' 'pygobject')
10 license=('GPL3')
11 optdepends=('python-gconf')
13 _gitroot='git://github.com/Wintervenom/gst-spectrumdump.git'
14 _gitname='gst-spectrumdump'
16 build() {
17     cd "$srcdir"
18     msg 'Connecting to GIT server...'
19     if [[ -d "$_gitname" ]]; then
20         cd "$_gitname" && git pull origin
21         msg 'The local files are updated.'
22     else
23         git clone "$_gitroot" "$_gitname"
24     fi
26     msg 'GIT checkout done or server timeout.'
29 package() {
30     cd "$srcdir/$_gitname"
31     install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname"