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

Sven-Hendrik Haase svenstaro at archlinux.org
Mon May 27 19:12:33 UTC 2019


    Date: Monday, May 27, 2019 @ 19:12:32
  Author: svenstaro
Revision: 471844

upgpkg: dstat 0.7.4-2

Get rid of deprecation warning

Modified:
  dstat/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-05-27 19:12:27 UTC (rev 471843)
+++ PKGBUILD	2019-05-27 19:12:32 UTC (rev 471844)
@@ -4,7 +4,7 @@
 
 pkgname=dstat
 pkgver=0.7.4
-pkgrel=1
+pkgrel=2
 pkgdesc="A versatile resource statistics tool"
 arch=('any')
 url="http://dag.wieers.com/home-made/dstat/"
@@ -11,11 +11,15 @@
 license=('GPL')
 depends=('python')
 source=(https://github.com/dagwieers/dstat/archive/v${pkgver}.tar.gz)
-md5sums=('9d6a11d1f8cff1e4bf953958c824c798')
+sha512sums=('d100223887ebd83d0fd1259436f39419a85df9002556abcfc8e4195aa63be73d85707dcd5c4fb56a979b29131485dce6e97c177fbfca08dc50bd0f92b15cc6f5')
 
 package() {
   cd $pkgname-$pkgver
 
-  make DESTDIR=$pkgdir install
-  make DESTDIR=$pkgdir docs
+  make DESTDIR="$pkgdir" install
+  make DESTDIR="$pkgdir" docs
+
+  # Get rid of deprecation warning.
+  sed -i "s/import collections/import collections.abc/g" -i "$pkgdir"/usr/bin/dstat
+  sed -i "s/collections.Sequence/collections.abc.Sequence/g" -i "$pkgdir"/usr/bin/dstat
 }



More information about the arch-commits mailing list