blob: cee64291481f915e137b970a2feabb06e3b3b781 (
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
36
|
# Maintainer: Jah Way <jahway603 at protonmail dot com>
pkgname=dnstop-git
_pkgname=dnstop
pkgver=r229.aaf21ba
pkgrel=1
pkgdesc="displays various tables of DNS traffic on your network"
arch=(i686 x86_64)
url="https://github.com/measurement-factory/dnstop"
license=('BSD')
depends=('libpcap')
conflicts=('dnstop')
provides=('dnstop')
source=("git+$url"
"https://raw.githubusercontent.com/measurement-factory/dnstop/master/LICENSE")
sha256sums=('SKIP'
'b4a15b9a1e44ce1ef569572820c9dc7ddda344d809a0d8376fc7955f54a1b896')
# https://wiki.archlinux.org/title/VCS_package_guidelines
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}
build() {
cd $srcdir/$_pkgname
./configure
make
}
package() {
cd $srcdir/$_pkgname
install -Dm755 $_pkgname "$pkgdir"/usr/bin/$_pkgname
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
# install manpage
install -Dm644 $_pkgname.8 "$pkgdir/usr/share/man/man8/$_pkgname.8"
}
|