updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / lysdr-git / PKGBUILD
blob72f8d53a6c2356e3c4b4359209b3ad6436337e78
1 # lysdr-git
2 # software-defined radio, using Gtk+ GUI and jack audio IO
3 # Maintainer: Gordonjcp <gordon@gjcp.net>
4 pkgname=lysdr-git
5 pkgver=0.0.6
6 pkgrel=3
7 pkgdesc="Software-defined Radio receiver"
8 arch=(i686)
9 url="https://github.com/gordonjcp/lysdr"
10 license=('GPL')
11 depends=(fftw gtk2 jack)
12 makedepends=('python' 'git')
14 _gitroot="git://github.com/gordonjcp/lysdr.git"
15 _gitname="lysdr"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Building with waf"
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   #
36   # BUILD HERE
37   #
39   ./waf configure --prefix=/usr
40   ./waf build
43 package() {
44   cd "$srcdir/$_gitname-build"
45   DESTDIR="$pkgdir/" ./waf install