# Maintainer: Lukas Fleischer # Maintainer: George Rawlinson # Contributor: Kaiting Chen # Contributor: Aaron Schaefer pkgname=duplicity pkgver=1.0.1 pkgrel=2 _tag='8bcf34a939adac51c7cfd2d01968ad186fb86531' # git rev-parse rel.$pkgver pkgdesc='A utility for encrypted, bandwidth-efficient backups using the rsync algorithm' arch=('x86_64') url='https://duplicity.gitlab.io/' license=('GPL') depends=('gnupg' 'librsync' 'python-paramiko' 'python-fasteners' 'python-future') makedepends=('python-setuptools-scm') optdepends=('lftp: backend for ftp, ftps, fish' 'ncftp: alternative backend for ftp' 'python-boto: Amazon S3 and Google Cloud Storage backend' 'python-dropbox: Dropbox backend' 'python-gobject: GIO backend' 'gvfs: GIO backend' 'python-pydrive2: Google Drive backend' 'python-requests-oauthlib: OneDrive backend' 'rsync: rsync backend') source=("git+https://gitlab.com/duplicity/duplicity.git#tag=${_tag}") sha512sums=('SKIP') prepare() { cd ${startdir}/src/${pkgname} && ./setup.py sdist --dist-dir=${srcdir} } package() { tar xzf "$pkgname-$pkgver.tar.gz" cd "$pkgname-$pkgver" python setup.py install --root="$pkgdir" --optimize=1 # move documentation to the correct directory cd "$pkgdir/usr/share/doc" mv "$pkgname-$pkgver" "$pkgname" }