summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a3b9fc570ad5d56e7e3934e0f765f9065f336c9c (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
## PKGBUILD adapted from community/gkrellm 2.3.5-5
# Maintainer: 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}-git
pkgver=20160206.5e76842
pkgrel=1
pkgdesc="System monitor package for GTK2"
arch=('x86_64' 'i686')
url="http://gkrellm.srcbox.net/"
license=('GPL3')
depends=('gtk2' 'libsm' 'lm_sensors')
makedepends=('gettext' 'git' 'make')
provides=('gkrellm')
conflicts=('gkrellm')
backup=('etc/gkrellmd.conf')
options=('emptydirs')
source=('gkrellm.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}
  make LOCALEDIR=/usr/share/locale SYS_LIBS+=-lgmodule-2.0
}

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

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

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