summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a7ea4c790724a3a64b27ed872e336af53d9f5c8 (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
# Maintainer: George Angelopoulos <george@usermod.net>

# Upstream collectl provides an init script for running collectl as a service.
# Since we have systemd instead, this needs to be fixed. Currently this package
# doesn't provide a systemd unit for  collectl.

pkgname=collectl
pkgver=4.0.2
pkgrel=2
pkgdesc="A tool for viewing and gethering system performance metrics."
arch=('any')
url="http://collectl.sourceforge.net/"
license=('GPL2' 'custom:artistic')
depends=('perl')
backup=('etc/collectl.conf')
source=("http://sourceforge.net/projects/collectl/files/collectl/${pkgname}-${pkgver}/${pkgname}-${pkgver}.src.tar.gz"
        "collectl.service")
md5sums=('8502fbb30539e6f9ac962b8577a863b4'
         '5a8892732fb5a7d64c7071394024eff8')

package() {
	cd "${pkgname}-${pkgver}"
    DESTDIR="${pkgdir}" ./INSTALL

    # we don't have sysv init in arch
    rm -rf ${pkgdir}/etc/init.d
    rm -rf ${pkgdir}/usr/share/${pkgname}/UNINSTALL

    # collectl is licensed under the GPL2 and some version of the ARTISTIC
    # license. Since the version of the license from upstream doesn't
    # match with any of the common ones in Arch Linux, we'll copy the
    # artistic license here as custom.
    install -D -m644 ARTISTIC "${pkgdir}/usr/share/licenses/${pkgname}/ARTISTIC"
    install -D -m644 "${srcdir}/${pkgname}.service" "${pkgdir}/usr/lib/systemd/system/${pkgname}.service"
}