updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / proaudio-sound-control-git / PKGBUILD
blob2805ad3bc32fdfe0d058f489acac533ed834ecfe
1 # Maintainer: SpepS <dreamspepser at yahoo dot it>
3 _name=proaudio-sound-control
4 pkgname=$_name-git
5 pkgver=20111218
6 pkgrel=1
7 pkgdesc="A single-window mash-up of QJackCtl and QasMixer."
8 arch=(i686 x86_64)
9 url="https://gitorious.org/gabrbedd/ivory"
10 license=('GPL')
11 depends=('qt' 'jack' 'portaudio')
12 makedepends=('git' 'cmake')
13 provides=("$_name")
14 conflicts=("$_name")
15 install="$pkgname.install"
17 _gitroot=git://gitorious.org/gabrbedd/$_name.git
18 _gitname=$_name
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [[ -d "$_gitname" ]]; then
25     cd "$_gitname" && git pull origin
26     msg "The local files are updated."
27   else
28     git clone "$_gitroot" "$_gitname"
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting build..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   #
39   # BUILD HERE
40   #
42   mkdir bld && cd bld
43   cmake .. -DCMAKE_INSTALL_PREFIX=/usr
44   make
47 package() {
48   cd "$srcdir/$_gitname-build/bld"
49   make DESTDIR="$pkgdir/" install
51   # rm gz
52   rm "$pkgdir/usr/share/man/man1/$_name.1.gz"
55 # vim:set ts=2 sw=2 et: