summaryrefslogtreecommitdiff
path: root/community-staging/duplicity/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-16 00:33:10 -0700
committerroot <root@rshg054.dnsready.net>2012-10-16 00:33:10 -0700
commit99d0ec7ebad2eda5f3a03098962e3b250e3bef4c (patch)
tree8b24758dfa8c691cda33acaa931699ce81dc1c15 /community-staging/duplicity/PKGBUILD
parente9dd04abd0ede1143ea4af10059e37c2f599e1fd (diff)
Tue Oct 16 00:33:08 PDT 2012
Diffstat (limited to 'community-staging/duplicity/PKGBUILD')
-rw-r--r--community-staging/duplicity/PKGBUILD36
1 files changed, 36 insertions, 0 deletions
diff --git a/community-staging/duplicity/PKGBUILD b/community-staging/duplicity/PKGBUILD
new file mode 100644
index 000000000..9fc900326
--- /dev/null
+++ b/community-staging/duplicity/PKGBUILD
@@ -0,0 +1,36 @@
+# $Id: PKGBUILD 77932 2012-10-15 23:29:05Z allan $
+# Maintainer: Kaiting Chen <kaitocracy@gmail.com>
+# Contributor: Aaron Schaefer <aaron@elasticdog.com>
+
+pkgname=duplicity
+pkgver=0.6.19
+pkgrel=2
+pkgdesc='A utility for encrypted, bandwidth-efficient backups using the rsync algorithm.'
+arch=('i686' 'x86_64')
+url='http://www.nongnu.org/duplicity/'
+license=('GPL')
+depends=('librsync' 'ncftp' 'python2' 'python2-boto' 'python2-gnupginterface' 'python2-paramiko')
+source=("http://savannah.nongnu.org/download/$pkgname/$pkgname-$pkgver.tar.gz"{,.sig})
+md5sums=('c88122d0b651f84f3bfa42e55591c36b'
+ 'df672ed47b8eb4fd8ffa99711623b6b5')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # python2 fix
+ for file in $(find . -name '*.py' -print); do
+ sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' $file
+ sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' $file
+ done
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ python2 setup.py install --root="$pkgdir" --optimize=1
+
+ # fix broken documentation permissions until upstream does (FS#27301)
+ chmod 644 "$pkgdir/usr/share/man/man1/$pkgname.1"
+ chmod 644 "$pkgdir/usr/share/man/man1/rdiffdir.1"
+ chmod 644 "$pkgdir/usr/share/doc/$pkgname-$pkgver"/*
+}