summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: feb5608e431d177e33225e6c7fc00db0d8b0bdd8 (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=r28.bb3cc59
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}"
}