summaryrefslogtreecommitdiff
path: root/community/ubuntuone-client-gnome
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-05-26 00:02:35 +0000
committerroot <root@rshg054.dnsready.net>2012-05-26 00:02:35 +0000
commita5721a07196cf00c26ea1bfb651aab756d202ccb (patch)
treeb60f984dd22f98544c8d2fd9526cc24dea3dcd25 /community/ubuntuone-client-gnome
parentaa30737839de3c2a4a1287442cb9859414fb4b0a (diff)
Sat May 26 00:02:35 UTC 2012
Diffstat (limited to 'community/ubuntuone-client-gnome')
-rw-r--r--community/ubuntuone-client-gnome/PKGBUILD41
-rw-r--r--community/ubuntuone-client-gnome/fix-build.patch13
-rw-r--r--community/ubuntuone-client-gnome/ubuntuone-client-gnome.install11
3 files changed, 65 insertions, 0 deletions
diff --git a/community/ubuntuone-client-gnome/PKGBUILD b/community/ubuntuone-client-gnome/PKGBUILD
new file mode 100644
index 000000000..6e277f729
--- /dev/null
+++ b/community/ubuntuone-client-gnome/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 71106 2012-05-24 07:04:34Z bgyorgy $
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=ubuntuone-client-gnome
+pkgver=3.0.1
+pkgrel=1
+pkgdesc="Some plug-ins, extensions, and data for integrating Ubuntu One features in some core parts of GNOME"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/ubuntuone-client-gnome"
+license=('GPL')
+depends=('nautilus' 'evolution-data-server' 'ubuntuone-client')
+makedepends=('intltool' 'gnome-settings-daemon')
+optdepends=('gnome-settings-daemon: shows a warning when Ubuntu One runs out of space')
+options=('!libtool')
+install=$pkgname.install
+source=(http://launchpad.net/ubuntuone-client-gnome/stable-3-0/$pkgver/+download/$pkgname-$pkgver.tar.gz
+ http://pkgbuild.com/~bgyorgy/sources/$pkgname-translations-20120513.tar.gz
+ fix-build.patch)
+md5sums=('20cc05860c3d3dc2c294f4001cbc9108'
+ 'cabbf043f9be0ea8df4c9a4b020cd2c3'
+ '8d34fed775be23d1743dda079a293b78')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ patch -Np1 -i "$srcdir/fix-build.patch"
+
+ # Install language files
+ echo 'am ar ast az be bg bn bs ca ca@valencia cs da de el en_AU en_GB eo es et eu fi fo fr gd gl gu he hi hr hu id it ja kk km ko ku lt lv ms my nb nl nn oc pa pl pt pt_BR ro ru shn si sk sl sq sr sv ta te th tr ug uk vi zh_CN zh_HK zh_TW' >po/LINGUAS
+ rename $pkgname- '' ../po/$pkgname-*.po
+ mv -f -t po ../po/*
+
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+ --disable-static --disable-schemas-compile
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+}
diff --git a/community/ubuntuone-client-gnome/fix-build.patch b/community/ubuntuone-client-gnome/fix-build.patch
new file mode 100644
index 000000000..237ba323e
--- /dev/null
+++ b/community/ubuntuone-client-gnome/fix-build.patch
@@ -0,0 +1,13 @@
+diff -Naur ubuntuone-client-gnome-3.0.0.orig/nautilus/utils.c ubuntuone-client-gnome-3.0.0/nautilus/utils.c
+--- ubuntuone-client-gnome-3.0.0.orig/nautilus/utils.c 2012-02-22 16:40:56.000000000 +0100
++++ ubuntuone-client-gnome-3.0.0/nautilus/utils.c 2012-05-13 22:26:35.267409857 +0200
+@@ -26,8 +26,7 @@
+ #include <limits.h>
+ #include <stdlib.h>
+ #include <glib/gi18n.h>
+-#include <glib/gutils.h>
+-#include <glib/gfileutils.h>
++#include <glib.h>
+ #include <libnautilus-extension/nautilus-file-info.h>
+ #include <libsyncdaemon/libsyncdaemon.h>
+ #include "ubuntuone-nautilus.h"
diff --git a/community/ubuntuone-client-gnome/ubuntuone-client-gnome.install b/community/ubuntuone-client-gnome/ubuntuone-client-gnome.install
new file mode 100644
index 000000000..7a903e80c
--- /dev/null
+++ b/community/ubuntuone-client-gnome/ubuntuone-client-gnome.install
@@ -0,0 +1,11 @@
+post_install() {
+ glib-compile-schemas usr/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}