[arch-commits] Commit in duplicity/trunk (PKGBUILD)
Lukas Fleischer
lfleischer at archlinux.org
Wed Jan 15 08:08:35 UTC 2020
Date: Wednesday, January 15, 2020 @ 08:08:34
Author: lfleischer
Revision: 552601
upgpkg: duplicity 0.8.09-3: fix remaining Python 2 references
Modified:
duplicity/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-01-15 07:58:36 UTC (rev 552600)
+++ PKGBUILD 2020-01-15 08:08:34 UTC (rev 552601)
@@ -4,13 +4,13 @@
pkgname=duplicity
pkgver=0.8.09
-pkgrel=2
+pkgrel=3
pkgdesc='A utility for encrypted, bandwidth-efficient backups using the rsync algorithm.'
arch=('x86_64')
url='https://www.nongnu.org/duplicity/'
license=('GPL')
depends=('gnupg' 'librsync' 'python-paramiko' 'python-fasteners')
-makedepends=('python2-setuptools')
+makedepends=('python-setuptools')
optdepends=('lftp: backend for ftp, ftps, fish'
'ncftp: alternative backend for ftp'
'python-boto: Amazon S3 and Google Cloud Storage backend'
@@ -25,20 +25,10 @@
'SKIP')
validpgpkeys=('9D95920CED4A8D5F8B086A9F8B6F8FF4E654E600')
-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
+ python 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"
More information about the arch-commits
mailing list