updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libvlc-qt / PKGBUILD
blob84ab22df5dc230dce400524cd3f5e771b2447571
1 pkgname=libvlc-qt
2 pkgver=20111003
3 pkgrel=1
4 pkgdesc="A free library used to connect Qt and libvlc libraries"
5 arch=('i686' 'x86_64')
6 url="http://tano.si/en/projects/vlc-qt"
7 license=('GPL')
8 depends=('vlc>=1.1' 'qt>=4.6')
9 makedepends=('cmake>=2.6')
10 source=()
11 md5sums=()
13 _gitroot='git://github.com/ntadej/vlc-qt.git'
14 _gitname='vlc-qt'
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}