summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ec16c19e0234e0544420c958809515cca070193 (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
pkgname=journal-watch-git
pkgver=7.91f43f4
pkgrel=1
pkgdesc='Like journalctl -f but with username prefixed'
url='https://github.com/sandsmark/journal-watch'
arch=('x86_64' 'i686')
license=('GPL2')
makedepends=('gcc' 'git')
depends=('systemd-libs')
source=("git+https://github.com/sandsmark/journal-watch.git")
md5sums=('SKIP')

pkgver() {
    cd journal-watch
    printf "%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd journal-watch
    make
}

package() {
    cd journal-watch
    install -D -m4755 journal-watch -t "${pkgdir}/usr/bin"
}