diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 32 |
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7b668b97bc9a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = netswine-git + 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 + pkgver = alpha0.r2.gf8215e8 + pkgrel = 1 + url = https://github.com/DiedByDisgust/netswine + arch = x86_64 + license = GPLv2 + makedepends = git + depends = nethogs-git + depends = ncurses + depends = sqlite3 + provides = netswine=alpha0.r2.gf8215e8 + conflicts = netswine-git + source = netswine::git+https://github.com/DiedByDisgust/netswine#branch=main + md5sums = SKIP + +pkgname = netswine-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..b2bc98fdac4f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} + |