archrelease: copy trunk to community-any
[ArchLinux/community.git] / vnstat / repos / community-x86_64 / PKGBUILD
blobe3288a102f04c94605cf6dbfca35ee4a376b968d
1 # Maintainer:  Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Maintainer:  Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
3 # Contributor: Thorsten Töpper <atsutane-tu@freethoughts.de>
5 pkgname=vnstat
6 pkgver=2.10
7 pkgrel=1
8 pkgdesc="A console-based network traffic monitor"
9 arch=('x86_64')
10 url="https://humdi.net/vnstat/"
11 license=('GPL')
12 depends=('bash' 'sqlite')
13 makedepends=('gd')
14 optdepends=('gd: image output')
15 backup=(etc/vnstat.conf)
16 source=(https://humdi.net/vnstat/$pkgname-$pkgver.tar.gz{,.asc})
17 sha256sums=('a9c61744e5cd8c366e2db4d282badc74021ddb614bd65b41240937997e457d25'
18             'SKIP')
19 validpgpkeys=(23EF1DD76E65248FB055201ADAFE84E63D140114) # Teemu Toivola
21 build() {
22   cd "$srcdir"/$pkgname-$pkgver
23   ./configure --prefix=/usr --sbindir=/usr/bin --sysconfdir=/etc
24   make
27 package() {
28   cd "$srcdir"/$pkgname-$pkgver
29   mkdir -p "$pkgdir"/usr/bin
30   make DESTDIR="$pkgdir" install
31   install -Dm0755 examples/vnstat.cgi "$pkgdir"/usr/share/doc/vnstat/examples/vnstat.cgi
32   install -Dm0644 examples/systemd/vnstat.service "$pkgdir"/usr/lib/systemd/system/vnstat.service