summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fd33f373c51faf2503fe65fc02f5ba20f29ef5a9 (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
30
31
32
33
34
35
36
37
38
39
# Maintainer: Rasmus Steinke <rasi@xssn.at>

pkgname=rofi-top-git
_gitname=rofi-top
pkgver=r19.e5abb43
pkgrel=1
pkgdesc="A plugin for rofi that emulates top behaviour."
arch=('i686' 'x86_64')
url="https://gitcrate.org/qtools/rofi-top"
license=('MIT')
depends=(rofi-git libgtop)
options=('!libtool')
makedepends=('git')
provides=('rofi-top')
source=("git+https://gitcrate.org/qtools/rofi-top.git")
md5sums=('SKIP')

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

prepare() {
  cd "$srcdir/$_gitname"
  autoreconf --install

  # Default compiler = clang, which can be a problem if using hardening-wrapper
  CC=gcc ./configure --prefix=/usr
}

build() {
  cd "$srcdir/$_gitname"
  make
}

package() {
  cd "$srcdir/$_gitname"
  make install install-man DESTDIR="$pkgdir"
}