updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / girara-gtk3-git / PKGBUILD
blob09c3a4db92392937f6e699729421336bf1822bff
1 # Maintainer: mlq <mlq@pwmt.org>
3 pkgname=girara-gtk3-git
4 pkgver=20110717
5 pkgrel=1
6 pkgdesc="user interface library"
7 arch=('i686' 'x86_64')
8 url="http://pwmt.org/projects/libgirara"
9 license=('custom')
10 depends=('gtk3>=3.0.3')
11 makedepends=('git')
13 conflicts=('girara-gtk3')
14 provides=('girara-gtk3')
16 _gitroot='git://pwmt.org/girara.git'
17 _gitname='girara'
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   make GIRARA_GTK_VERSION=3 
39   make GIRARA_GTK_VERSION=3 DESTDIR="$pkgdir/" install
40   install -D -m664 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"