diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/duplicity |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/duplicity')
-rw-r--r-- | community/duplicity/PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/community/duplicity/PKGBUILD b/community/duplicity/PKGBUILD new file mode 100644 index 000000000..e8278a4e0 --- /dev/null +++ b/community/duplicity/PKGBUILD @@ -0,0 +1,26 @@ +# $Id: PKGBUILD 43020 2011-03-23 21:31:21Z kchen $ +# Maintainer: Kaiting Chen <kaitocracy@gmail.com> +# Contributor: Aaron Schaefer <aaron@elasticdog.com> + +pkgname=duplicity +pkgver=0.6.12 +pkgrel=1 +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' 'python-boto' 'python-gnupginterface') +source=("http://savannah.nongnu.org/download/$pkgname/$pkgname-$pkgver.tar.gz") +md5sums=('9b84c984054550bbb2ba29b553567b7b') + +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 + + python2 setup.py install --root="$pkgdir" --optimize=1 +} |