updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / rhythmbox-microblogger-git / PKGBUILD
blob325834563393334349d924e81bda39584d3a2c9d
1 # Maintainer: Ryan Peters <sloshy45@sbcglobal.net>
2 # Contributor: (copied and pasted text from his PKGBUILD) Ismael Carnales <icarnales@gmail.com>
3 pkgname=rhythmbox-microblogger-git
4 pkgver=20100909
5 pkgrel=1
6 pkgdesc="Post the song you are listening to on Rhythmbox to your microblog."
7 arch=('any')
8 url="http://github.com/aliva/rhythmbox-microblogger"
9 license=('GPL')
10 depends=('rhythmbox' 'python')
11 makedepends=('git')
12 provides=('rhythmbox-microblogger')
13 conflicts=('rhythmbox-microblogger')
15 _gitroot=git://github.com/aliva/rhythmbox-microblogger.git
16 _gitname=rhythmbox-microblogger
18 build() {
19   cd "$srcdir/"
20   msg "Connecting to github.com GIT server..."
21   if [ -d $startdir/src/$_gitname ] ; then
22     cd $_gitname && git-pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot
26   fi
27   mkdir -p "usr/lib/rhythmbox/plugins/"  
28   mv "rhythmbox-microblogger/" "usr/lib/rhythmbox/plugins/rhythmbox-microblogger/"
29   cp -R "usr/" "$pkgdir/"