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