updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / phinix-git / PKGBUILD
blob3b933a9c26fe56172670bdf7da8261876d5df6a3
1 # Contributor: Alexandre Petitjean <alpetitjean_gmail dot_com>
3 pkgname="phinix-git"
4 pkgver=20110423
5 pkgrel=1
6 pkgdesc="A very light and simple Qt music player"
7 url="https://codaset.com/alexandrep/phinix"
8 license=("GPL-3")
9 arch=("i686" "x86_64")
10 depends=("qt" "phonon")
11 makedepends=("git")
12 provides=("phinix")
13 conflicts=("phinix phinix-svn")
14 source=()
15 md5sums=()
17 _gitroot="https://codaset.com/alexandrep/phinix.git"
18 _gitname="phinix"
20 build() {
21   cd $srcdir
22   msg "Connecting to the GIT server...."
23   
24   if [[ -d $srcdir/$_gitname ]] ; then
25     cd $_gitname
26     git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot $_gitname
30     cd $_gitname
31   fi
32   
33   msg "GIT checkout done"
34   msg "Starting make..."
36   qmake || return 1
37   make || return 1
39   install -D -m755 "${srcdir}/phinix/phinix" "${pkgdir}/usr/bin/phinix"
40   install -D -m644 "${srcdir}/phinix/resources/phinix.png" "${pkgdir}/usr/share/pixmaps/phinix.png"
41   install -D -m644 "${srcdir}/phinix/resources/phinix.desktop" "${pkgdir}/usr/share/applications/phinix.desktop"