summaryrefslogtreecommitdiff
path: root/~lukeshu/collectd-systemd/PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-09-18 17:57:28 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2018-09-18 18:01:34 -0400
commita4080e96a5a048e7502699e4208116f6910e3ff5 (patch)
treeaa263567946a352b82b7c2acace749b42ee49d7f /~lukeshu/collectd-systemd/PKGBUILD
parentfe96fc510e9c3bfd33f8fa6da4abf331e0bc8c24 (diff)
downloadabslibre-a4080e96a5a048e7502699e4208116f6910e3ff5.tar.gz
abslibre-a4080e96a5a048e7502699e4208116f6910e3ff5.tar.bz2
abslibre-a4080e96a5a048e7502699e4208116f6910e3ff5.zip
~lukeshu/collectd-systemd: Fix
- Correct the license=(); (GPLv2+, not Apache) - Use Python 3 deps, not Python 2 (collectd 5.8.0-4 switched to Python 3) - Work around broken install path variables in Makefile
Diffstat (limited to '~lukeshu/collectd-systemd/PKGBUILD')
-rw-r--r--~lukeshu/collectd-systemd/PKGBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/~lukeshu/collectd-systemd/PKGBUILD b/~lukeshu/collectd-systemd/PKGBUILD
index 1b1125d8c..4d49a2004 100644
--- a/~lukeshu/collectd-systemd/PKGBUILD
+++ b/~lukeshu/collectd-systemd/PKGBUILD
@@ -1,14 +1,14 @@
-# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+# 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=('Apache')
+license=('GPL')
-pkgrel=1
+pkgrel=2
arch=('any')
-depends=('collectd' 'systemd' 'python2-dbus')
+depends=('collectd' 'systemd' 'python-dbus')
source=("https://repo.parabola.nu/other/~lukeshu/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('9a5bf4e8f6f775ae98182a0577c91371')
@@ -16,6 +16,11 @@ _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[@]}"