updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sbackup / PKGBUILD
blob7ddd1e7a58792c4e0a30c98e329ab6820512d921
1 # Maintainer: György Balló <ballogy@freestart.hu>
2 # Contributor: Travis Willard <travisw@wmpub.ca>
3 # Contributor: William Rea <sillywilly@gmail.com>
5 pkgname=sbackup
6 pkgver=0.11.4
7 pkgrel=1
8 pkgdesc="Simple backup solution intended for desktop use"
9 arch=('any')
10 url="https://launchpad.net/sbackup"
11 license=('GPL')
12 depends=('python2-gconf' 'python2-libgnome' 'python-notify' 'gvfs' 'dbus-python' 'hicolor-icon-theme' 'xdg-utils')
13 makedepends=('python2-distribute')
14 optdepends=('python-pexpect: for ssh fuse plugin'
15             'sshfs: for ssh plugin'
16             'curlftpfs: for ftp and sftp fuse plugins')
17 install=$pkgname.install
18 source=(http://launchpad.net/$pkgname/${pkgver%.*}/$pkgver/+download/${pkgname}_$pkgver.tar.gz)
19 md5sums=('5e85502c233be387f58a5cdefffc8ab0')
21 build() {
22   cd "$srcdir/$pkgname-$pkgver"
23   find . -type f | xargs sed -i 's@^#!.*python$@#!/usr/bin/python2@'
24   sed -i "s/dpkg --get-selections/pacman -Q/" src/sbackup/core/snapshot.py
26   make PYTHON=python2 PREFIX=/usr
29 package() {
30   cd "$srcdir/$pkgname-$pkgver"
32   make PYTHON=python2 \
33        PREFIX=/usr \
34        DESTDIR="$pkgdir/usr" \
35        sysconf_dir=$pkgdir/etc \
36        SETUP.PY_OPTS="--root=$pkgdir/" \
37        DISABLE_MAKEFILE_GTK_UPDATE_ICON_CACHE=1 \
38        DISABLE_MAKEFILE_DESKTOP_DATABASE_RELOAD=1 \
39        DISABLE_MAKEFILE_DBUS_RELOAD=1 \
40        GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 \
41        DISABLE_MAKEFILE_CLEAN_DATA=1 \
42        install