updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / libapp-git / PKGBUILD
blobbefaf52c88f82e6f641af44c8ee9903236062037
1 # Maintainer: Greg Smith <gasmith@gmail.com>
2 pkgname=libapp-git
3 pkgver=20110130
4 pkgrel=1
5 pkgdesc="Utilities for repetitive tasks in app development"
6 arch=('i686' 'x86_64')
7 url="https://github.com/drotiro/libapp"
8 license=('LGPL3')
9 makedepends=('git')
10 provides=('libapp')
12 _gitroot="http://github.com/drotiro/libapp.git"
13 _gitname="libapp"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
33   #
34   # BUILD HERE
35   #
37   make
40 package() {
41   cd "$srcdir/$_gitname-build"
42   mkdir -p "$pkgdir/usr/include"
43   mkdir -p "$pkgdir/usr/lib"
44   make PREFIX="$pkgdir/usr/" install
45