updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / minitunes-git / PKGBUILD
blobd28037457ed187ec6b074ae3a7f6f63589006b7f
1 # Maintainer: Alessio Sergi <asergi at archlinux dot us>
3 pkgname=minitunes-git
4 _realname=minitunes
5 pkgver=20110320
6 pkgrel=1
7 pkgdesc="Just another music player, only better"
8 arch=('i686' 'x86_64')
9 url="http://gitorious.org/minitunes"
10 license=('GPL3')
11 depends=('desktop-file-utils' 'hicolor-icon-theme' 'phonon' 'taglib')
12 makedepends=('git')
13 optdepends=('gstreamer0.10-plugins: for gstreamer backend'
14             'phonon-gstreamer: gstreamer backend'
15             'phonon-mplayer-git: mplayer backend'
16             'phonon-vlc: vlc backend'
17             'phonon-xine: xine backend')
18 provides=(${_realname})
19 conflicts=(${_realname})
20 install=${pkgname}.install
22 _gitroot="git://gitorious.org/${_realname}/${_realname}.git"
23 _gitname=${_realname}
25 build() {
26   cd "${srcdir}"
28   msg "Connecting to GIT server...."
30   if [ -d ${_gitname} ] ; then
31     cd ${_gitname} && git pull origin
32     msg "The local files are updated."
33   else
34     git clone ${_gitroot} ${_gitname}
35   fi
37   msg "GIT checkout done or server timeout"
38   msg "Starting make..."
40   rm -rf "${srcdir}/${_gitname}-build"
41   git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
42   cd "${srcdir}/${_gitname}-build"
44   qmake PREFIX=/usr
47 package() {
48   cd "${srcdir}/${_gitname}-build"
50   make INSTALL_ROOT="${pkgdir}" install