summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b25de62dfc9f2fc88b23bbaaad46dc1463d9a024 (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
40
41
42
43
44
45
46
47
48
49
## PKGBUILD adapted from community/gkrellm 2.3.5-5
# Maintainer: Šarūnas Gliebus <ssharunas at yahoo.co.uk>
# Contributor: Troy Engel <troyengel+arch@gmail.com>
# Contributor: Laurent Carlier <lordheavym@gmail.com>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: Matt Smith (Majik) <darkknight@helpdesk.zaz.net>
# Contributor: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Jozef Riha <jose1711@gmail.com>
# Contributor: Alexander Rødseth <rodseth@gmail.com>

_gitname=gkrellm
pkgname=${_gitname}d-git
pkgver=20180411.c306bb7
pkgrel=1
pkgdesc="Headless version of system monitor package"
arch=('x86_64' 'i686')
url="http://gkrellm.srcbox.net/"
license=('GPL3')
depends=('lm_sensors')
makedepends=('gettext' 'git' 'make')
provides=('gkrellm')
conflicts=('gkrellm')
backup=('etc/gkrellmd.conf')
options=('emptydirs')
source=('gkrellmd.service'
        'git://git.srcbox.net/gkrellm')
md5sums=('63c78daed61c82b933f558177f6d3721'
         'SKIP')


pkgver() {
  cd ${srcdir}/${_gitname}
  echo $(date +%Y%m%d).$(git rev-parse --short HEAD)
}

build() {
  cd ${srcdir}/${_gitname}/server
  make LOCALEDIR=/usr/share/locale SYS_LIBS+=-lgmodule-2.0
}

package() {
  cd ${srcdir}/${_gitname}/server

  make DESTDIR="$pkgdir" PREFIX=/usr install
  install -Dm644 "gkrellmd.conf" "$pkgdir/etc/gkrellmd.conf"
  install -Dm644 "../../gkrellmd.service" "$pkgdir/usr/lib/systemd/system/gkrellmd.service"
}

# vim:set ts=2 sw=2 et: