updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / vplayer-hg / PKGBUILD
blob4eb32e2e38774e96e5026a6cefa98d474fe55f34
1 # Contributor: Aleksey Frolov <aleks.lifey@gmail.com>
3 pkgname=vplayer-hg
4 pkgver=281
5 pkgrel=1
6 pkgdesc="Music player aiming to be small and fast. Latest developing version from mercurial repository."
7 arch=(i686 x86_64)
8 url=('http://bitbucket.org/A2K/vplayer')
9 license="GPL"
10 depends=('python' 'pyqt' 'qt' 'python-xlib' 'python-chardet' 'mutagen')
11 makedepends=('mercurial')
12 source=()
13 md5sums=()
14 conflicts=('vplayer')
15 provides=('vplayer')
17 _hgroot=http://bitbucket.org/A2K
18 _hgrepo=vplayer
20 build(){
21         cd $startdir/src
23         if [ -d $_hgrepo ]; then
24                 cd $startdir/src/$_hgrepo
25                 hg pull -u
26         else
27                 hg clone $_hgroot/$_hgrepo || return 1
28                 cd $startdir/src/$_hgrepo
29         fi
31         cp -rf $startdir/src/$_hgrepo $startdir/src/$_hgrepo-build
32         cd $startdir/src/$_hgrepo-build
34         make uis || return 1 
35         make resources || return 1
36         make translations || return 1
38         python setup.py install --root=$startdir/pkg/ || return 1
40         install -Dm755 vplayer $startdir/pkg/usr/bin/vplayer
41         install -Dm644 vplayer.desktop $startdir/pkg/usr/share/applications/vplayer.desktop
42         install -Dm644 icon.svg $startdir/pkg/usr/share/pixmaps/vplayer.svg
43         install -Dm644 icon.xpm $startdir/pkg/usr/share/pixmaps/vplayer.xpm
44         install -Dm644 icon.png $startdir/pkg/usr/share/pixmaps/vplayer.png
46         rm -rf $startdir/src/$_hgrepo-build