summaryrefslogtreecommitdiff
path: root/community/deja-dup/PKGBUILD
blob: 7c44a1aac87e33b1be4b47f95853bcf87ff9efe7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $Id: PKGBUILD 85692 2013-03-05 09:07:44Z bgyorgy $
# Maintainer: Balló György <ballogyor+arch at gmail dot com>

pkgname=deja-dup
pkgver=24.0
pkgrel=3
pkgdesc="Simple backup tool, that hides the complexity of backing up the Right Way and uses duplicity as the backend"
arch=('i686' 'x86_64' 'mips64el')
url="https://launchpad.net/deja-dup"
license=('GPL')
depends=('duplicity' 'libgnome-keyring' 'libpeas' 'libnotify' 'python2-gobject' 'gvfs' 'dconf' '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
        new-u1backend-support.patch
        update-u1-pythonchecker.patch)
md5sums=('335131d1f3c85615339fa8b212db50ae'
         '944a4c62f042b240feba98f8d9a893b2'
         'd0893c17e3e61c3ada065a002a9ab419')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -i 's/\"python\", \"-c\"/\"python2\", \"-c\"/' common/PythonChecker.vala

  # Add support for the new Ubuntu One backend
  patch -Np0 -i "$srcdir/new-u1backend-support.patch"

  # And update the PythonChecker check for the new U1 backend too
  patch -Np0 -i "$srcdir/update-u1-pythonchecker.patch"

  ./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
}