updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / jsoundz-git / PKGBUILD
blobebc687d36a9610b7002beb18f93eda8879314a5a
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _pkg=jsoundz
4 pkgname=$_pkg-git
5 pkgver=20110302
6 pkgrel=1
7 pkgdesc="A jack / qt4 SoundWall / CartWall."
8 arch=('i686' 'x86_64')
9 url="https://github.com/zotz/jSoundz/wiki"
10 license=('GPL')
11 depends=('qt')
12 optdepends=('sox: sox backend'
13             'jack: jack backend'
14             'mplayer: mplayer backend')
15 makedepends=('git')
16 provides=("$_pkg")
17 conflicts=("$_pkg")
19 _gitroot="git://github.com/zotz/jSoundz.git"
20 _gitname="$_pkg"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf "$srcdir/$_gitname-build"
37   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
40   #
41   # BUILD HERE
42   #
44   # fixes ambiguos calls to QString()
45   sed -i "s|NULL||" src/{main,swall}.cpp
47   qmake -project
48   qmake
49   make
52 package() {
53   cd "$srcdir/$_gitname-build"
55   install -Dm755 $_pkg-build "$pkgdir/usr/bin/$_pkg"
56