pkgname=vnstat pkgver=2.12 pkgrel=1 pkgdesc="Console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s)" arch=('x86_64') url="https://github.com/vergoh/vnstat" license=('GPL') depends=('bash' 'gd' 'sqlite') backup=(etc/vnstat.conf) install=vnstat.install source=("https://humdi.net/vnstat/${pkgname}-${pkgver}.tar.gz") md5sums=('98bab6e04f123cfd9f605c579bce8ae7') build() { cd ${pkgname}-${pkgver} ./configure --prefix=/usr --sysconfdir=/etc make } package() { cd ${pkgname}-${pkgver} make DESTDIR=${pkgdir} install install -Dm0755 examples/vnstat.cgi ${pkgdir}/usr/share/doc/vnstat/examples/vnstat.cgi install -Dm0644 examples/systemd/vnstat.service ${pkgdir}/usr/lib/systemd/system/vnstat.service }