updated on Sun Jan 8 12:02:35 UTC 2012
[aur-mirror.git] / buzzbird-git / PKGBUILD
blob7c066038b19532333d036bb6d9e4da3681929254
1 # Maintainer: Sven 'pfleidi' Pfleiderer <sven @ roothausen.de>
2 pkgname=buzzbird-git
3 pkgver=20100326
4 pkgrel=1
5 pkgdesc="A XULRunner based Twitter client. GIT-Version"
6 arch=('i686' 'x86_64')
7 license=('Custom')
8 depends=('alsa-lib' 'nss' 'libxt' 'xulrunner')
9 conflicts=('buzzbird')
11 url="http://getbuzzbird.com/bb/"
12 source=(LICENSE.txt buzzbird.sh)
13 md5sums=('3db51fe40e8846e71ca94169286e6bc9' '41708f1efdb5e00f6002bcab645985e6')
15 _gitroot="git://github.com/mdesjardins/buzzbird.git"
16 _gitname="buzzbird"
18 build() {
19    cd "$srcdir"
20    msg "Connecting to GIT server...."
22    if [ -d $_gitname ] ; then
23       cd $_gitname && git pull origin
24       cd -
25       msg "The local files are updated."
26    else
27       git clone $_gitroot
28    fi
30    msg "GIT checkout done or server timeout"
32    mkdir -p $pkgdir/opt
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
38    cd $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