summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorllamasking2021-08-18 20:09:29 -0700
committerllamasking2021-08-18 20:15:48 -0700
commit4175205f17a975fdac4f022493ee4dc047cd4cff (patch)
treeda2236a383df864521d2159fd59e848f6374f2fa
downloadaur-4175205f17a975fdac4f022493ee4dc047cd4cff.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD33
2 files changed, 49 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..e22f09ad4ac6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = netproc-git
+ pkgdesc = A tool to monitor network traffic based on processes. GIT version
+ pkgver = 0.6.2.r0.ga1c6d7c
+ pkgrel = 1
+ url = https://github.com/berghetti/netproc
+ arch = x86_64
+ license = GPL
+ makedepends = git
+ depends = ncurses
+ depends = glibc
+ provides = netproc
+ conflicts = netproc
+ source = netproc::git+https://github.com/berghetti/netproc
+ md5sums = SKIP
+
+pkgname = netproc-git
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..6d2a8433fc99
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: llamasking
+pkgname=netproc-git
+_pkgname=netproc
+pkgver=0.6.2.r0.ga1c6d7c
+pkgrel=1
+pkgdesc="A tool to monitor network traffic based on processes. GIT version"
+arch=("x86_64")
+url="https://github.com/berghetti/netproc"
+license=("GPL")
+depends=("ncurses" "glibc")
+makedepends=("git")
+provides=("netproc")
+conflicts=("netproc")
+source=("$_pkgname::git+https://github.com/berghetti/netproc")
+md5sums=("SKIP")
+
+pkgver() {
+ cd "$srcdir/$_pkgname"
+ git describe --long | sed "s/\([^-]*-g\)/r\1/;s/-/./g"
+}
+
+build() {
+ cd "$srcdir/$_pkgname"
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname"
+ install -D -m755 "bin/$_pkgname" "$pkgdir/usr/bin/$_pkgname"
+ install -D -m644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ install -D -m644 "doc/$_pkgname.8" "$pkgdir/usr/share/man/man8"; \
+ gzip -9 -f "doc/$_pkgname.8"
+} \ No newline at end of file