summaryrefslogtreecommitdiff
path: root/~lukeshu/collectd-systemd/PKGBUILD
blob: 4d49a2004a0402e61d9636e045ef8ee3539c749b (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
# Maintainer: Luke Shumaker <lukeshu@parabola.nu>

pkgname=collectd-systemd
pkgver=20170820
pkgdesc="A collectd plugin to read systemd unit and job counts"
url="https://git.lukeshu.com/$pkgname.git"
license=('GPL')

pkgrel=2
arch=('any')
depends=('collectd' 'systemd' 'python-dbus')
source=("https://repo.parabola.nu/other/~lukeshu/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('9a5bf4e8f6f775ae98182a0577c91371')

_config=(
  prefix=/usr
)

prepare() {
  cd "$srcdir/$pkgname-$pkgver"
  sed -Ei 's/collectd([a-z])/collectd_\1/g' Makefile
}

build() {
  cd "$srcdir/$pkgname-$pkgver"
  make "${_config[@]}"
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make  "${_config[@]}" install DESTDIR="$pkgdir"
}