summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9c33528764590d81d9fcad0bfe869b55c91bf302 (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=r23.9416add
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 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 DESTDIR="${pkgdir}"
}