summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a83a77b71bacc71d54fc0bb1c4a9f5be7f0b9f0f (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
# Maintainer: Jon Gjengset
pkgname=what-git
pkgver=r10.7ccdaed
pkgrel=2
pkgdesc="An improved version of w that shows all processes associated with a TTY"
arch=('any')
url="https://github.com/mit-pdos/what"
license=('MIT')
depends=('python')
makedepends=('git')
provides=()
conflicts=()
source=('git+https://github.com/mit-pdos/what.git')
md5sums=('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 -D what "$pkgdir/usr/bin/what"
}