updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / gnome-do-plugins-bzr / PKGBUILD
blob36f4aa0f810587f5f4ed1f16af539096a73bbad1
1 # Maintainer:
3 pkgname=gnome-do-plugins-bzr
4 _realname=gnome-do-plugins
5 pkgver=715
6 pkgrel=1
7 pkgdesc="Plugins for GNOME Do"
8 arch=('i686' 'x86_64')
9 url="https://launchpad.net/~do-plugins"
10 license=('GPL3')
11 depends=('gnome-do-bzr')
12 makedepends=('bzr' 'intltool' 'monodevelop')
13 optdepends=('banshee: Banshee plugin'
14             'evolution-sharp: Evolution plugin'
15             'flickrnet: Flickr plugin')
16 provides=($_realname)
17 conflicts=($_realname)
18 options=('!makeflags')
19 source=()
20 md5sums=()
22 _bzrtrunk="lp:do-plugins"
23 _bzrmod=$_realname
25 build() {
26   export MONO_SHARED_DIR="$srcdir/.wabi"
27   mkdir -p "$MONO_SHARED_DIR"
29   cd "$srcdir"
31   msg "Connecting to the server...."
33   if [ -d $_bzrmod ]; then
34     bzr up $_bzrmod
35     msg "The local files are updated."
36   else
37     bzr co $_bzrtrunk $_bzrmod
38   fi
40   msg "BZR checkout done or server timeout"
41   msg "Starting make..."
43   rm -rf "$_bzrmod-build"
44   cp -r "$_bzrmod" "$_bzrmod-build"
45   cd "$_bzrmod-build"
47   ./autogen.sh
48   ./configure --prefix=/usr
49   make
52 package() {
53   cd "$srcdir/$_bzrmod-build"
55   make DESTDIR="$pkgdir" install
57   rm -rf $pkgdir/usr/lib/gnome-do/plugins/*.mdb