updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / heytrack-git / PKGBUILD
blobd40d7b15aa5dd8559a3831e8159fe1137c83e198
1 # Author: mosra <mosra@centrum.cz>
2 pkgname=heytrack-git
3 pkgver=20100919
4 pkgrel=1
5 pkgdesc="Simple utility for playing internet radio streams with track notification (Git version)"
6 arch=('i686' 'x86_64')
7 url="http://mosra.cz/blog/heytrack-en.php"
8 license=('LGPLv3')
9 depends=('qt' 'qjson')
10 makedepends=('git' 'cmake')
11 optdepends=('kdebase-workspace')
12 conflicts=('heytrack')
13 provides=('heytrack')
15 _gitroot="git://github.com/mosra/heytrack.git"
16 _gitname="heytrack"
18 build() {
19     cd "$srcdir"
20     msg "Connecting to GIT server...."
22     if [ -d $_gitname ] ; then
23         cd $_gitname && git pull origin
24         msg "The local files are updated."
25     else
26         git clone $_gitroot $_gitname
27     fi
29     msg "GIT checkout done or server timeout"
30     msg "Starting make..."
32     mkdir -p "$srcdir/build"
33     cd "$srcdir/build"
35     cmake -DCMAKE_INSTALL_PREFIX=/usr ../${_gitname}
36     make
39 package() {
40     cd "$srcdir/build"
41     make DESTDIR="$pkgdir/" install