[arch-commits] Commit in rdiff-backup/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Mar 19 12:27:40 UTC 2020


    Date: Thursday, March 19, 2020 @ 12:27:39
  Author: felixonmars
Revision: 600867

upgpkg: rdiff-backup 2.0.0-1

Modified:
  rdiff-backup/trunk/PKGBUILD

----------+
 PKGBUILD |   74 ++++++++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 52 insertions(+), 22 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-19 12:20:37 UTC (rev 600866)
+++ PKGBUILD	2020-03-19 12:27:39 UTC (rev 600867)
@@ -3,37 +3,67 @@
 # Contributor: Erwin Van de Velde <erwin.vandevelde at gmail.com>
 
 pkgname=rdiff-backup
-pkgver=1.3.0
+pkgver=2.0.0
+_commit=2d40ceba94aa7a66dd5fb95a8225bf70f6821ba7
 pkgrel=1
 pkgdesc='A utility for local/remote mirroring and incremental backups.'
 arch=('x86_64')
 url='https://www.nongnu.org/rdiff-backup/'
 license=('GPL')
-depends=('python2' 'librsync')
-optdepends=('pylibacl: access control list support'
-            'pyxattr: extended attribute support')
-source=("https://savannah.nongnu.org/download/${pkgname}/${pkgname}-${pkgver}.tar.gz"{,.asc}
-        rdiff-backup-1.2.8-librsync-1.0.0.patch)
-sha512sums=('cc38ccf34ef3a006d503730791cdade6cb22c4d72ccea113da07041579e9b8015fd3b7fae717fcaf456f7df828729f2edd7584dbff498bf9a0c37edb0522ee83'
-            'SKIP'
-            '641894eb2527c0031d420345e8dfd4d7a0e18dc656feabf70c7200d04ea5eb533d5cd06bbaa46721a03578e2f373e0ed64643edb4edffc7f85e813d1c2812055')
-validpgpkeys=('B572DE9BC6537B9D5A4735B114C2601BDCA52872') # Andrew Ferguson
+depends=('python' 'librsync')
+makedepends=('git' 'python-setuptools-scm')
+checkdepends=('python-pylibacl' 'python-pyxattr')
+optdepends=('python-pylibacl: access control list support'
+            'python-pyxattr: extended attribute support')
+source=("git+https://github.com/rdiff-backup/rdiff-backup.git#commit=$_commit?signed"
+        git+https://github.com/rdiff-backup/rdiff-backup-filesrepo.git)
+sha512sums=('SKIP'
+            'SKIP')
+validpgpkeys=('B572DE9BC6537B9D5A4735B114C2601BDCA52872'  # Andrew Ferguson
+              '5DE3E0509C47EA3CF04A42D34AEE18F83AFDEB23') # GitHub
 
-prepare() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  patch -Np1 -i ../rdiff-backup-1.2.8-librsync-1.0.0.patch
+build() {
+  cd $pkgname
+  python setup.py build
 }
 
-build() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  python2 setup.py build
+check() {
+  fakeroot tar xf rdiff-backup-filesrepo/rdiff-backup_testfiles.tar
+  cd $pkgname
+  export PATH="$PWD/build/scripts-3.8:$PATH"
+  export PYTHONPATH="$PWD/build/lib.linux-x86_64-3.8"
+  python testing/commontest.py
+  python testing/ctest.py
+  python testing/timetest.py
+  python testing/librsynctest.py || :  # https://github.com/rdiff-backup/rdiff-backup/issues/304
+  python testing/statisticstest.py
+  python testing/user_grouptest.py || :  # Missing user/group
+  python testing/setconnectionstest.py
+  python testing/iterfiletest.py
+  python testing/longnametest.py
+  python testing/robusttest.py
+  python testing/connectiontest.py
+  python testing/incrementtest.py
+  python testing/hardlinktest.py
+  python testing/eas_aclstest.py
+  python testing/FilenameMappingtest.py
+  python testing/fs_abilitiestest.py
+  python testing/hashtest.py
+  python testing/selectiontest.py || :  # Missing mknod'ed test files
+  python testing/metadatatest.py
+  python testing/rpathtest.py || :  # Permission difference
+  python testing/rorpitertest.py
+  python testing/rdifftest.py
+  python testing/securitytest.py
+  python testing/killtest.py
+  python testing/backuptest.py
+  python testing/comparetest.py
+  python testing/regresstest.py
+  python testing/restoretest.py
+  python testing/cmdlinetest.py
 }
 
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-
-  python2 setup.py install --root="${pkgdir}" -O1
-
-  # Fix for FS#18848
-  sed -i 's|python2|python2 -W ignore::DeprecationWarning|' "${pkgdir}/usr/bin/rdiff-backup"
+  cd $pkgname
+  python setup.py install --root="$pkgdir" -O1
 }



More information about the arch-commits mailing list