# Compiling Time: 0.03 SBU
# Maintainer: DeX77 <dex+fw@dragonslave.de>
# Contributor: Cedrick Hannier alias Cedynamix <cedynamix@gmail.com>

pkgname=duplicity
pkgver=3.0.5.1
pkgrel=1
pkgdesc="Encrypted bandwidth-efficient backup using the rsync algorithm."
url="https://duplicity.us"
depends=('librsync>=0.9.7' 'gnupg' 'ncftp' 'python3-boto>=2.5.2' \
	'python3-gnupginterface>=0.3.2' 'python3-lockfile' 'python3-setuptools_scm' \
	'python3-fasteners')
makedepends+=('gettext')
groups=('apps-extra')
archs=('x86_64')
up2date="lynx -dump https://gitlab.com/api/v4/projects/${pkgname}%2F${pkgname}/repository/tags  | jq -r '.[].name' | head -n 1 | sed 's/rel.// '"
source=("https://gitlab.com/duplicity/duplicity/-/archive/rel.${pkgver}/duplicity-rel.${pkgver}.tar.bz2")
sha1sums=('4421381017cb9585ef5518561acde9104abc8759')
_F_cd_path="$pkgname-rel.$pkgver"

build() {
       Fcd
       Fexec python3 setup.py install --root=$Fdestdir --optimize=1 || Fdie
}

# optimization OK
