updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / ubuntuone-client-bzr / PKGBUILD
blobfe8858d3b39c037c7bf18ed2295126c9261dab01
1 # package by: Samir Faci <csgeek@archlinux dot us > 
3 pkgname=ubuntuone-client-bzr
4 pkgver=74
5 pkgrel=1
6 pkgdesc="Client for Ubuntu One shareing service, this is a first attempt, expect bugs..but it does build."
7 arch=('i686' 'x86_64')
8 url="https://launchpad.net/ubuntuone-client"
9 license=('GPL3')
10 groups=('ubuntuone-bzr')
11 depends=('dbus-python' 'gnome-python-desktop' 'gnome-settings-daemon' 'libproxy' \
12 'pyinotify' 'python' 'python-configglue' 'python-notify' 'python-simplejson' \
13 'ubuntuone-storage-protocol>=1.5.1' 'ubuntu-sso-client>=0.99.4' 'xdg-utils' 'gnome-common' )
14 makedepends=('bzr' 'intltool' 'nautilus' 'xorg-utils' 'imake' 'automake' 'gtk-doc' )
15 provides=('ubuntuone-client-bzr')
16 conflicts=('ubuntuone-client')
17 options=(!emptydirs)
19 _bzrbranch=lp:ubuntuone-client
20 _bzrseries=trunk
22 build() {
24   cd ${srcdir}
25   msg "Connecting to the server...."
26   if [ ! -d ./${_bzrseries} ]; then
27     bzr co ${_bzrbranch} ${_bzrseries}
28   else
29     cd ${_bzrseries}
30     bzr up ${_bzrseries}
31   fi
32   cd ${srcdir}
34   msg "BZR checkout done or server timeout"
35   [ -d ${_bzrseries}-build ] && rm -rf ${_bzrseries}-build
36   msg "Creating build copy"
37   bzr co ${_bzrseries} ${_bzrseries}-build
38   cd ${_bzrseries}-build
40   # Start install
41   patch -p1 -i ../../py2.patch
42   ./autogen.sh  --prefix=/usr --sysconfdir=/etc --localstatedir=/var ac_cv_path_PYTHON=/usr/bin/python2
43   make
44   make DESTDIR=$pkgdir install