summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68582d1d30948a8bf29453364e1605940920b090 (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
# Maintainer: Caltlgin Stsodaat <contact@fossdaily.xyz>

_pkgname='bpytop'
pkgname="${_pkgname}-git"
pkgver=1.0.42.r0.gadee413
pkgrel=1
pkgdesc='Resource monitor that shows usage and stats for processor, memory, disks, network and processes'
arch=('any')
url='https://github.com/aristocratos/bpytop'
license=('APACHE')
depends=('python-psutil')
makedepends=('git')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+${url}.git")
sha256sums=('SKIP')

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

package() {
  cd "${_pkgname}"
  install -Dvm755 "${_pkgname}.py" "${pkgdir}/usr/bin/${_pkgname}"
  install -Dvm644 'themes/'* -t "${pkgdir}/usr/share/${_pkgname}/themes"
  install -Dvm644 'README.md' -t "${pkgdir}/usr/share/doc/${_pkgname}"
}

# vim: ts=2 sw=2 et: