summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b2bc98fdac4f872563662a5ccd50e12c63c6a074 (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
# Maintainer: DiedByDisgust <sergio.cabrerafalcon@gmail.com>
pkgname=netswine-git
_pkgname=netswine
pkgver=alpha0.r2.gf8215e8
pkgrel=1
pkgdesc="a small network data metric tool that runs as a daemon. Collects network traffic data, then groups it by process, so can be analized later. GIT version"
arch=("x86_64")
url="https://github.com/DiedByDisgust/netswine"
license=("GPLv2")
depends=("nethogs-git" "ncurses" "sqlite3")
makedepends=("git")
provides=("netswine=${pkgver}")
conflicts=("netswine-git")
source=("netswine::git+https://github.com/DiedByDisgust/netswine#branch=main")
md5sums=("SKIP")

pkgver() {
  cd "$_pkgname"
  git describe --tags  | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "$_pkgname"
  unset CXXFLAGS
  make
}

package() {
  cd "$_pkgname"
  make prefix="/usr" DESTDIR="$pkgdir" install
}