summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f57c3a83b3397ea61d7628d47527cd76567e99a4 (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
# Maintainer: Fabio Sussarellu <sussarellu.fabio@gmail.com>
pkgname=bashtop-git
pkgver=r313.4bf71e6
pkgrel=1
pkgdesc="Resource monitor that shows usage and stats for processor, memory, disks, network and processes."
arch=('any')
url="https://github.com/aristocratos/bashtop"
license=('Apache')
depends=('bash')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/aristocratos/bashtop.git')
sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "$srcdir/${pkgname%-git}"
	install -Dm755 "${pkgname%-git}" -t "$pkgdir/usr/bin"
	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/${pkgname%-git}"
}