summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e32d2f2a523b8970dce2e0cdb180e4e4392c5ee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: willemw <willemw12@gmail.com>

pkgname=speedometer-git
pkgver=2.8.r38.g890df21
pkgrel=1
pkgdesc='Measure and display the rate of data across a network connection or data being stored in a file'
arch=(any)
url=http://excess.org/speedometer
license=(GPL-3.0-or-later)
depends=(python-psutil python-urwid)
makedepends=(git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+https://github.com/wardi/speedometer.git"
        remove_pkg_resources.patch)
sha256sums=('SKIP'
            '84dfef8dd2c6bfcc209996d3cebb957933e39188c76bad9e518a8b4a4458e1cf')

pkgver() {
  git -C $pkgname describe --long --tags | sed 's/^release.//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  patch --directory=$pkgname --forward --strip=1 --input="$srcdir/remove_pkg_resources.patch"
  sed -i "s/__version__ = .*/__version__ = 'develop'/" $pkgname/speedometer.py
}

package() {
  install -Dm755 $pkgname/speedometer.py "$pkgdir/usr/bin/speedometer"
}