summaryrefslogtreecommitdiff
path: root/community/deja-dup
diff options
context:
space:
mode:
Diffstat (limited to 'community/deja-dup')
-rw-r--r--community/deja-dup/PKGBUILD42
-rw-r--r--community/deja-dup/deja-dup.install12
-rw-r--r--community/deja-dup/libsecret-1.vapi79
3 files changed, 133 insertions, 0 deletions
diff --git a/community/deja-dup/PKGBUILD b/community/deja-dup/PKGBUILD
new file mode 100644
index 000000000..3c243421c
--- /dev/null
+++ b/community/deja-dup/PKGBUILD
@@ -0,0 +1,42 @@
+# $Id: PKGBUILD 87385 2013-03-30 14:36:30Z bgyorgy $
+# Maintainer: Balló György <ballogyor+arch at gmail dot com>
+
+pkgname=deja-dup
+pkgver=26.0
+pkgrel=1
+pkgdesc="Simple backup tool, that hides the complexity of backing up the Right Way and uses duplicity as the backend"
+arch=('i686' 'x86_64')
+url="https://launchpad.net/deja-dup"
+license=('GPL')
+depends=('duplicity' 'libpeas' 'libnotify' 'python2-gobject' 'gvfs' 'xdg-utils')
+makedepends=('vala' 'intltool' 'itstool' 'nautilus')
+optdepends=('nautilus: backup extension'
+ 'python2-boto: Amazon S3 backend'
+ 'python2-oauthlib: Ubuntu One backend'
+ 'ubuntuone-client: Ubuntu One backend')
+options=('!libtool')
+install=$pkgname.install
+source=(http://launchpad.net/$pkgname/${pkgver%.*}/$pkgver/+download/$pkgname-$pkgver.tar.xz
+ libsecret-1.vapi)
+md5sums=('0430bbf03deac852651599a979a4cc32'
+ '27ca0a3c9efbe93e86ef563c77f6ddf3')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ # Python2 fix
+ sed -i 's/\"python\", \"-c\"/\"python2\", \"-c\"/' common/PythonChecker.vala
+
+ # Add missing Vala API file
+ cp "$srcdir/libsecret-1.vapi" "vapi/libsecret-1.vapi"
+
+ ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libexecdir=/usr/lib/$pkgname \
+ --disable-static --disable-schemas-compile --without-unity
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+}
diff --git a/community/deja-dup/deja-dup.install b/community/deja-dup/deja-dup.install
new file mode 100644
index 000000000..6ce7836d2
--- /dev/null
+++ b/community/deja-dup/deja-dup.install
@@ -0,0 +1,12 @@
+post_install() {
+ glib-compile-schemas usr/share/glib-2.0/schemas
+ xdg-icon-resource forceupdate
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}
diff --git a/community/deja-dup/libsecret-1.vapi b/community/deja-dup/libsecret-1.vapi
new file mode 100644
index 000000000..7d3f4a3a6
--- /dev/null
+++ b/community/deja-dup/libsecret-1.vapi
@@ -0,0 +1,79 @@
+/* libsecret-1.vapi generated by vapigen-0.20, do not modify. */
+
+[CCode (cprefix = "Secret", gir_namespace = "Secret", gir_version = "1", lower_case_cprefix = "secret_")]
+namespace Secret {
+ [CCode (cheader_filename = "libsecret/secret.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "secret_schema_get_type ()")]
+ [Compact]
+ public class Schema {
+ [CCode (array_length = false, array_null_terminated = true)]
+ public weak Secret.SchemaAttribute[] attributes;
+ public Secret.SchemaFlags flags;
+ public weak string name;
+ [CCode (has_construct_function = false)]
+ public Schema (string name, Secret.SchemaFlags flags, ...);
+ [CCode (cname = "secret_schema_newv", has_construct_function = false)]
+ public Schema.newv (string name, Secret.SchemaFlags flags, GLib.HashTable<string,Secret.SchemaAttributeType> attribute_names_and_types);
+ public Secret.Schema @ref ();
+ public void unref ();
+ }
+ [CCode (cheader_filename = "libsecret/secret.h", copy_function = "g_boxed_copy", free_function = "g_boxed_free", type_id = "secret_schema_attribute_get_type ()")]
+ [Compact]
+ public class SchemaAttribute {
+ public weak string name;
+ public Secret.SchemaAttributeType type;
+ }
+ [CCode (cheader_filename = "libsecret/secret.h", cprefix = "SECRET_ERROR_", has_type_id = false)]
+ public enum Error {
+ PROTOCOL,
+ IS_LOCKED,
+ NO_SUCH_OBJECT,
+ ALREADY_EXISTS;
+ public static GLib.Quark get_quark ();
+ }
+ [CCode (cheader_filename = "libsecret/secret.h", cprefix = "SECRET_SCHEMA_ATTRIBUTE_", has_type_id = false)]
+ public enum SchemaAttributeType {
+ STRING,
+ INTEGER,
+ BOOLEAN
+ }
+ [CCode (cheader_filename = "libsecret/secret.h", cprefix = "SECRET_SCHEMA_", has_type_id = false)]
+ [Flags]
+ public enum SchemaFlags {
+ NONE,
+ DONT_MATCH_NAME
+ }
+ [CCode (cheader_filename = "libsecret/secret.h", cname = "SECRET_COLLECTION_DEFAULT")]
+ public const string COLLECTION_DEFAULT;
+ [CCode (cheader_filename = "libsecret/secret.h", cname = "SECRET_COLLECTION_SESSION")]
+ public const string COLLECTION_SESSION;
+ [CCode (cheader_filename = "libsecret/secret.h")]
+ public static GLib.HashTable<string,string> attributes_build (Secret.Schema schema, ...);
+ [CCode (cheader_filename = "libsecret/secret.h")]
+ public static GLib.HashTable<string,string> attributes_buildv (Secret.Schema schema, va_list va);
+ [CCode (cheader_filename = "libsecret/secret.h")]
+ public static async bool password_clear (Secret.Schema schema, GLib.Cancellable? cancellable, ...) throws GLib.Error;
+ [CCode (cheader_filename = "libsecret/secret.h")]
+ public static bool password_clear_sync (Secret.Schema schema, GLib.Cancellable? cancellable = null, ...) throws GLib.Error;
+ [CCode (cheader_filename = "libsecret/secret.h", finish_name = "secret_password_clear_finish")]
+ public static async bool password_clearv (Secret.Schema schema, GLib.HashTable<string,string> attributes, GLib.Cancellable? cancellable) throws GLib.Error;
+ [CCode (cheader_filename = "libsecret/secret.h")]
+ public static bool password_clearv_sync (Secret.Schema schema, GLib.HashTable<string,string> attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [CCode (cheader_filename = "libsecret/secret.h")]
+ public static async string password_lookup (Secret.Schema schema, GLib.Cancellable? cancellable, ...) throws GLib.Error;
+ [CCode (cheader_filename = "libsecret/secret.h")]
+ public static string password_lookup_sync (Secret.Schema schema, GLib.Cancellable? cancellable = null, ...) throws GLib.Error;
+ [CCode (cheader_filename = "libsecret/secret.h", finish_name = "secret_password_lookup_finish")]
+ public static async string password_lookupv (Secret.Schema schema, GLib.HashTable<string,string> attributes, GLib.Cancellable? cancellable) throws GLib.Error;
+ [CCode (cheader_filename = "libsecret/secret.h")]
+ public static string password_lookupv_sync (Secret.Schema schema, GLib.HashTable<string,string> attributes, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [CCode (cheader_filename = "libsecret/secret.h")]
+ public static async bool password_store (Secret.Schema schema, string? collection, string label, string password, GLib.Cancellable? cancellable, ...) throws GLib.Error;
+ [CCode (cheader_filename = "libsecret/secret.h")]
+ public static bool password_store_sync (Secret.Schema schema, string? collection, string label, string password, GLib.Cancellable? cancellable = null, ...) throws GLib.Error;
+ [CCode (cheader_filename = "libsecret/secret.h", finish_name = "secret_password_store_finish")]
+ public static async bool password_storev (Secret.Schema schema, GLib.HashTable<string,string> attributes, string? collection, string label, string password, GLib.Cancellable? cancellable) throws GLib.Error;
+ [CCode (cheader_filename = "libsecret/secret.h")]
+ public static bool password_storev_sync (Secret.Schema schema, GLib.HashTable<string,string> attributes, string? collection, string label, string password, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [CCode (cheader_filename = "libsecret/secret.h")]
+ public static void password_wipe (string? password);
+}