PKGBUILDs/community/fusion-icon/PKGBUILD
2009-10-09 21:15:33 -05:00

50 lines
1.2 KiB
Bash

# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $
# Contributor: nesl247 <nesl247@gmail.com>
# Maintainer: JJDaNiMoTh <jjdanimoth@gmail.com>
pkgname=fusion-icon
pkgver=20090414
pkgrel=1
pkgdesc="Simple tray icon for compiz"
arch=('i686' 'x86_64')
url="http://opencompositing.org"
license=('GPL')
depends=('compiz-core>=0.6.0' 'pygtk' 'compizconfig-python' \
'hicolor-icon-theme' 'libtool' 'xorg-utils')
makedepends=('git')
groups=('compiz-fusion' 'compiz-fusion-kde' 'compiz-fusion-gtk')
replace=()
conflict=('fusion-icon-git')
install=fusion-icon.install
source=()
md5sums=()
_gitroot="git://anongit.opencompositing.org/users/crdlb/fusion-icon"
_gitname="fusion-icon"
build() {
msg "Connecting to opencompositing.org GIT server...."
if [[ -d $startdir/src/$_gitname ]] ; then
cd $_gitname
git-pull origin || return 1
msg "The local files are updated."
else
git clone $_gitroot || return 1
fi
msg "GIT checkout done"
msg "Starting make..."
# Remove old -build
rm -rf $startdir/src/$_gitname-build
cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
cd $startdir/src/$_gitname-build
make PREFIX=/usr DESTDIR=$startdir/pkg install || return 1
cd $startdir/src
rm -rf $_gitname-build
}