updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / qtmediahub-core-git / PKGBUILD
blobb7745df93eca8cc8c28bffcc722d65a74926b88b
1 pkgname=qtmediahub-core-git
2 pkgver=20110916
3 pkgrel=1
4 pkgdesc='A cross platform media hub built using Qt and QtQuick'
5 arch=('i686' 'x86_64')
6 url='http://www.qtmediahub.com'
7 license=('BSD')
8 depends=('qt>=4.7' 'taglib' 'libexif' 'qt-mobility>=1.2')
9 source=()
10 md5sums=()
12 _gitroot="git://gitorious.org/qtmediahub/qtmediahub-core.git"
13 _gitname="qtmediahub-core"
15 build() {
16     msg "Connecting to GIT server...."
18     if [ -d "$srcdir/$_gitname" ] ; then
19         cd $_gitname && git pull origin
20         msg "The local files are updated."
21     else
22         git clone --depth=1 $_gitroot
23     fi
24     
25     msg "GIT checkout done or server timeout"
26     
27     cd "$srcdir/$_gitname"
28     
29     git clean -fxd
30     qmake PREFIX="/usr" "CONFIG-=debug"
31     qmake PREFIX="/usr" "CONFIG-=debug"
32     make -j4
35 package() {
36     cd "${srcdir}/$_gitname"
37     
38     make INSTALL_ROOT=${pkgdir} install