updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / groove-dl-git / PKGBUILD
blobc385090086dd694bbf3f388423aadc3691f93b9b
1 # Maintainer: archtux <antonio.arias99999 at gmail.com>
3 pkgname=groove-dl-git
4 pkgver=20111127
5 pkgrel=1
6 pkgdesc="A Grooveshark song downloader in Python"
7 url="https://github.com/jacktheripper51/groove-dl"
8 arch='any'
9 license='GPL3'
10 depends=('python2' 'python2-objectlistview' 'wxpython')
11 makedepends=('git')
13 _gitroot="https://github.com/jacktheripper51"
14 _gitname="groove-dl.git"
17 build() {
18    cd $srcdir
19    msg "Connecting to GIT server...."
21    if [ -d $srcdir/$_gitname ] ; then
22         cd $_gitname && git pull origin
23         msg "The local files are updated."
24    else
25         git clone $_gitroot/$_gitname
26    fi
28    msg "GIT checkout done or server timeout"
29    msg "Starting make..."
31    cp -r ${srcdir}/groove-dl ${srcdir}/$_gitname-build
33    cd groove-dl/python
35    # Fix gui.py
36    sed -i '/MessageBox/d' gui.py
38    install -d $pkgdir/usr/share/groove-dl
39    chmod 755 -R $pkgdir/usr/share/groove-dl
40    cp * $pkgdir/usr/share/groove-dl
42    # Desktop icon
43    install -Dm644 ../misc/groove.ico $pkgdir/usr/share/pixmaps/groove.ico
44    cd $startdir
45    install -Dm644 groove-dl.desktop $pkgdir/usr/share/applications/groove-dl.desktop  
47    # Executable
48    install -Dm755 groove-dl $pkgdir/usr/bin/groove-dl