updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / librbus-git / PKGBUILD
blob9ae2992519d16e548d31d3cac4f85e1cd69cbb86
1 # Contributor: Ilya Petrov <ilya.muromec@gmail.com>
3 pkgname="librbus-git"
4 pkgver=0.1
5 pkgrel=3
6 pkgdesc="The lastest Realdesktop Bus library"
7 url="http://rbus.enodev.org"
8 license="BSD"
9 arch=("i686" "x86_64" "arm" "armv7h")
10 makedepends=("git")
11 provides=("librbus")
12 source=()
13 md5sums=()
15 __gitroot="https://github.com/realdesktop/"
16 __gitname="filebus"
18 __flags=( \
19         "PREFIX=/usr" \
20         "ETC=/etc" \
21         "PREFIX=${pkgdir}/usr" \
24 build() {
26     cd $srcdir
28     ## Git checkout
29     if [ -d $srcdir/${__gitname} ] ; then
30       msg "Git checkout:  Updating existing tree"
31       cd ${__gitname} && git checkout ${_commit}
32       msg "Git checkout:  Tree has been updated"
33     else
34       msg "Git checkout:  Retrieving sources"
35       git clone ${__gitroot}/${__gitname} ${__gitname}  && cd ${__gitname} && git checkout ${_commit} 
36     fi
37     msg "Checkout completed"
39     ## Build
40     [ -d ${__gitname}-build ] || rm -rf $srcdir/${__gitname}-build
41     git clone $srcdir/${__gitname} $srcdir/${__gitname}-build
42     cd $srcdir/${__gitname}-build
43     
44     msg "Starting build process."
45     make ${__flags[@]}
48 package() {
49     cd $srcdir/${__gitname}-build
50     make ${__flags[@]} install
53 # vim: set noet ff=unix