From 031da3b4440f0ee7f58e052d9a91059041f29679 Mon Sep 17 00:00:00 2001 From: Ido Rosen Date: Wed, 30 Oct 2013 22:44:59 -0400 Subject: [PATCH] Moved all AUR packages into 'aur' directory. --- .SRCINFO | 26 +++++++++++++++++++++++ PKGBUILD | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..48376ce5c9bc --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = duplicity-bzr + pkgdesc = A utility for encrypted, bandwidth-efficient backups using the rsync algorithm. + pkgver = 930 + pkgrel = 1 + url = http://www.nongnu.org/duplicity/ + arch = i686 + arch = x86_64 + license = GPL + depends = gnupg + depends = librsync + depends = ncftp + depends = python2-paramiko + optdepends = lftp: FTPS backend + optdepends = python2-boto: Amazon S3 backend + optdepends = python2-gobject: GIO backend + optdepends = gvfs: GIO backend + optdepends = python2-gdata: Google Docs backend + optdepends = python2-httplib2: Ubuntu One backend + optdepends = python2-oauthlib: Ubuntu One backend + optdepends = rsync: rsync backend + conflicts = duplicity + source = bzr+lp:duplicity + sha512sums = SKIP + +pkgname = duplicity-bzr + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..973ed56bd9bd --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,65 @@ +# $Id$ +# Maintainer: Ido Rosen +# Contributor: Kaiting Chen +# Contributor: Aaron Schaefer +# +# NOTE: To request changes to this package, please submit a pull request +# to the GitHub repository at https://github.com/ido/packages-archlinux +# Otherwise, open a GitHub issue. Thank you! -Ido +# + +pkgname=duplicity-bzr +pkgver=930 +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=('gnupg' 'librsync' 'ncftp' 'python2-paramiko') +optdepends=('lftp: FTPS backend' + 'python2-boto: Amazon S3 backend' + 'python2-gobject: GIO backend' + 'gvfs: GIO backend' + 'python2-gdata: Google Docs backend' + 'python2-httplib2: Ubuntu One backend' + 'python2-oauthlib: Ubuntu One backend' + 'rsync: rsync backend') +source=(bzr+lp:duplicity) +sha512sums=('SKIP') +#_bzrtrunk='https://code.launchpad.net/~duplicity-team/duplicity/trunk' +#_bzrmod=${pkgname} +conflicts=("${pkgname//-bzr/}") + +pkgver() { + cd "${srcdir}/${pkgname//-bzr/}" + bzr revno +} + +prepare() { + cd "${srcdir}/${pkgname//-bzr/}" + + python2 dist/makedist ${pkgver} + tar -C "${srcdir}" -xf \ + "${srcdir}/${pkgname//-bzr/}/${pkgname//-bzr/}-${pkgver}.tar.gz" +} + +build() { + cd "${srcdir}/${pkgname//-bzr/}-${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//-bzr/}-${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//-bzr/}.1" + chmod 644 "${pkgdir}/usr/share/man/man1/rdiffdir.1" + chmod 644 "${pkgdir}/usr/share/doc/${pkgname//-bzr/}-${pkgver}"/* +}