updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / hide-pidgin-attention-button-git / PKGBUILD
blobafb52a54b1803c3f7dde258bb94e5a9fef901a4c
1 # Maintainer: Ngoc Nguyen Bao <baongoc124@gmail.com>
2 pkgname=hide-pidgin-attention-button-git
3 pkgver=20110329
4 pkgrel=1
5 pkgdesc="Pidgin Plugin - Hide Pidgin Attention Button"
6 arch=('i686' 'x86_64')
7 url="https://github.com/soomsoom/Hide-Pidgin-Attention-Button"
8 license=('GPL')
9 depends=(freetype2 cairo libpurple gtk2)
10 makedepends=('git')
11 md5sums=()
13 _gitroot="https://github.com/soomsoom/Hide-Pidgin-Attention-Button"
14 _gitname="Hide-Pidgin-Attention-Button"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_gitname-build"
31   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
34   #
35   # BUILD HERE
36   #
38   make
41 package() {
42   cd "$srcdir/$_gitname-build"
43   make DESTDIR="$pkgdir/" install
44