updated on Sat Jan 21 16:18:39 UTC 2012
[aur-mirror.git] / emerald-git / PKGBUILD
blob09d7275926315fa0bcdca1bfb37949bab454b623
1 # Contributor: nesl247 <nesl247@gmail.com>
3 pkgname=emerald-git
4 pkgver=20070815
5 pkgrel=1
6 pkgdesc="Emerald window decorator"
7 arch=('i686' 'x86_64')
8 url="http://opencompositing.org"
9 license=('GPL')
10 depends=('compiz-git' 'libwnck' 'gtk2')
11 makedepends=('git' 'intltool' 'pkgconfig' 'gettext')
12 groups=('compiz-fusion-git')
13 conflicts=('emerald')
14 source=()
15 md5sums=()
17 _gitroot="git://anongit.opencompositing.org/fusion/decorators/emerald"
18 _gitname="emerald"
20 build() {
21   msg "Connecting to opencompositing.org GIT server...."
23   if [[ -d $startdir/src/$_gitname ]] ; then
24     cd $_gitname
25     git-pull origin || return 1
26     msg "The local files are updated."
27   else
28     git clone $_gitroot || return 1
29   fi
31   msg "GIT checkout done"
32   msg "Starting make..."
34   # Remove old -build
35   rm -rf $startdir/src/$_gitname-build
37   cp -r $startdir/src/$_gitname $startdir/src/$_gitname-build
38   cd $startdir/src/$_gitname-build
40   ACLOCAL="aclocal -I /usr/share/aclocal" ./autogen.sh --host=${CHOST} \
41     --prefix=/usr \
42     --infodir=/usr/share/info \
43     --mandir=/usr/man \
44     --sysconfdir=/etc || return 1
46   make || return 1
47   make DESTDIR=$startdir/pkg install || return 1
49   cd $startdir/src
50   rm -rf $_gitname-build