updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / tano / PKGBUILD
blob5ada2a47655cf74eb085b5df9099e5a119d2f5e7
1 pkgname=tano
2 pkgver=20111223
3 pkgrel=1
4 pkgdesc="An open-source cross-platform IP TV player based on Qt and libvlc"
5 arch=('i686' 'x86_64')
6 url="http://tano.si/en/projects/tano-player"
7 license=('GPL')
8 depends=('vlc>=1.1' 'qt>=4.6' 'libvlc-qt')
9 makedepends=('cmake>=2.6' 'qt>=4.6' 'dbus>=1.4' 'libvlc-qt' 'desktop-file-utils')
10 source=()
11 md5sums=()
13 _gitroot='git://github.com/ntadej/tano.git'
14 _gitname='tano'
15 _buildir=${_gitname}-build
17 build() {
18         cd ${srcdir}
20         msg 'Connecting to GIT server...'
21         if [ -d ${_gitname} ]; then
22                 cd ${_gitname} && git pull origin
23                 cd ..
24         else
25                 git clone ${_gitroot}
26         fi
28         msg 'GIT checkout done or server timeout.'
30         if [ -d ${_buildir} ]; then
31                 msg 'Cleaning previous build...'
32                 rm -rf ${_buildir}
33         fi
35         git clone ${_gitname} ${_buildir}
36         cd ${_buildir}
38         msg 'Running cmake...'
40         cmake . -DCMAKE_INSTALL_PREFIX=/usr \
41                 -DCMAKE_SKIP_RPATH=ON \
42                 -DCMAKE_BUILD_TYPE=Release
44         msg 'Done.'
46         msg 'Starting make...'
48         make || return 1
49         make DESTDIR="${pkgdir}" install || return 1
51         rm -rf ${srcdir}/${_buildir}
54 package() {
55         cd ${srcdir}
56         desktop-file-install -m 644 --dir ${pkgdir}/usr/share/applications/ ${_buildir}/${pkgname}.desktop