updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / gsharkdown / PKGBUILD
blob8c21ac522661d30fe2de03b22a87aafd6d5348f8
1 # Maintainer : SpepS <dreamspepser at yahoo dot it>
2 # Contributor: archtux <antonio.arias99999@gmail.com>
4 pkgname=gsharkdown
5 pkgver=0.5.9
6 pkgrel=1
7 pkgdesc="Application for downloading and playing music from grooveshark.com"
8 arch=('any')
9 url="https://bitbucket.org/vkolev/gsharkdown"
10 license=('GPL3')
11 depends=('gstreamer0.10-python' 'python-configobj' 'dbus-python' 'python-pycurl')
12 optdepends=('python2-pylast: last.fm support'
13             'python-notify: notification support'
14             'xdg-user-dirs: autodetect xdg music dir'
15             'libappindicator: indicator integration')
16 install="$pkgname.install"
17 source=("https://bitbucket.org/vkolev/gsharkdown/get/$pkgname-$pkgver.tar.bz2"
18         "$pkgname.desktop" "$pkgname.sh")
19 md5sums=('b11122d26df3dacd1d0ed2f481112eac'
20          '81869090135791eba7e658619f4eafdd'
21          'ede76e8bd3dcb1156e01f377a6c49cac')
23 build() {
24   return 0
27 package() {
28   cd "$srcdir/vkolev"*
30   # bin
31   install -Dm755 ../$pkgname.sh \
32     "$pkgdir/usr/bin/$pkgname"
34   # data
35   install -d "$pkgdir/usr/share/$pkgname"
36   cp -a * "$pkgdir/usr/share/$pkgname"
38   # icon
39   install -Dm644 data/gsharkdown_64.png \
40     "$pkgdir/usr/share/pixmaps/$pkgname.png"
42   # desktop file
43   install -Dm644 ../$pkgname.desktop \
44     "$pkgdir/usr/share/applications/$pkgname.desktop"
46   # python2 fix
47   sed -i "s|env python|&2|" `grep -rl "env python" "$pkgdir"`