1 # Maintainer: Sven 'pfleidi' Pfleiderer <sven @ roothausen.de>
5 pkgdesc="A XULRunner based Twitter client. GIT-Version"
8 depends=('alsa-lib' 'nss' 'libxt' 'xulrunner')
11 url="http://getbuzzbird.com/bb/"
12 source=(LICENSE.txt buzzbird.sh)
13 md5sums=('3db51fe40e8846e71ca94169286e6bc9' '41708f1efdb5e00f6002bcab645985e6')
15 _gitroot="git://github.com/mdesjardins/buzzbird.git"
20 msg "Connecting to GIT server...."
22 if [ -d $_gitname ] ; then
23 cd $_gitname && git pull origin
25 msg "The local files are updated."
30 msg "GIT checkout done or server timeout"
33 mkdir -p $pkgdir/usr/bin
34 mkdir -p $pkgdir/usr/share/licenses/$_gitname
35 cp LICENSE.txt $pkgdir/usr/share/licenses/$_gitname/
36 cp buzzbird.sh $srcdir/$_gitname
40 # remove photoshop files
41 find . -type f \( -name "*.psd" -or -name "*.exe" \) -exec rm {} \;
43 # set linux skin and remove the others
44 cp -r ./chrome/skin/classic-linux ./chrome/skin/classic
45 test -d ./chrome/skin/classic-win && rm -r ./chrome/skin/classic-win
46 test -d ./chrome/skin/classic-mac && rm -r ./chrome/skin/classic-mac
48 [ -d ./chrome/skin/classic ] || mkdir ./chrome/skin/classic
49 cp -fr ./chrome/skin/classic-linux/* ./chrome/skin/classic/
50 cp -fr ./chrome/content/platform/linux/* ./chrome/content/
51 cp ./chrome/content/notifications/notify-linux.sh ./chrome/content/notifications/notify.sh
52 cp ./chrome/content/js/notify/notify-linux.js chrome/content/js/notify/notify.js
54 cp -r $srcdir/$_gitname $pkgdir/opt/$_gitname
55 rm -r $pkgdir/opt/$_gitname/.git/
56 ln -s /opt/$_gitname/buzzbird.sh $pkgdir/usr/bin/$_gitname