updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / duplicati / PKGBUILD
blob9310ef742bda3f8619458cd3f308a97e97d8041e
1 # Maintainer:  Andrzej Zadrożny <azadrozny@gmail.com>
3 pkgname=duplicati
4 pkgver=1.3
5 pkgrel=4
6 pkgdesc='Free backup client that securely stores encrypted, incremental, compressed backups on cloud storage services and remote file servers. Duplicati is open source software, written in mono and available for Windows, Linux, and Mac OS X.'
7 arch=('i686' 'x86_64')
8 url="http://code.google.com/p/duplicati/"
9 license=('LPL')
10 depends=('mono')
11 optdepends=(
13 source=("http://duplicati.googlecode.com/files/Duplicati%20$pkgver.zip"
14         "http://duplicati.googlecode.com/svn/trunk/Duplicati/GUI/Resources/Duplicati.png"
15     )
17 #build() {
18 #       cd "$srcdir/Duplicati"
19 #       install -Dm755 bin/$pkgname "$pkgdir/usr/bin/$pkgname"
20 #       #cp -r share "$pkgdir/usr/"
23 sha1sums=('a71a86b2a09513f9e2f8c2467865351f76032129'
24         'e4e8ef8e797b0673e7256f63203491056923ed83'
25     )
27 package() {
28   #cd "$srcdir/$pkgname-$pkgver"
29   mkdir -p "$pkgdir/opt"
30   cp -r "$srcdir/Duplicati" "$pkgdir/opt/"
31   mkdir -p "$pkgdir/usr/bin"
32 cat >> "$pkgdir/usr/bin/duplicati" << EOF
33 #!/bin/sh
34 cd /opt/Duplicati/
35 /opt/Duplicati/StartDuplicati.sh
36 EOF
37   chmod 777 "$pkgdir/usr/bin/duplicati"
38   cp "$srcdir/Duplicati.png" "$pkgdir/opt/Duplicati/"
39   mkdir -p "$pkgdir/usr/share/applications"
40 cat >> "$pkgdir/usr/share/applications/duplicati.desktop" << EOF
41 #!/usr/bin/env xdg-open
42 [Desktop Entry]
43 Version=1.0
44 Name=Duplicati
45 Exec=/usr/bin/duplicati
46 Terminal=false
47 Icon=/opt/Duplicati/Duplicati.png
48 Type=Application
49 Categories=System;Utility;Archiving
50 EOF