summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authornick black2019-11-01 13:10:55 -0400
committernick black2019-11-01 13:10:55 -0400
commitf906b264216cfe678f42c519bd84cfe318993450 (patch)
tree70271f22c819b7e0f1b07453eaadd2372a7d8a83
downloadaur-f906b264216cfe678f42c519bd84cfe318993450.tar.gz
run unit tests, idempotent mkdir
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD32
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..9a416636558
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = libnetstack
+ pkgdesc = Networking stack cache atop netlink
+ pkgver = 0.3.0
+ pkgrel = 1
+ url = https://nick-black.com/dankwiki/index.php/Libnetstack
+ arch = x86_64
+ license = Apache
+ makedepends = gtest
+ makedepends = cmake
+ makedepends = libnl
+ depends = ncurses
+ source = https://github.com/dankamongmen/libnetstack/archive/v0.3.0.tar.gz
+ sha256sums = 0799e6b77ed6a00866dd2f24fc15d345a5908c8a81c742ddc1338f59b3d1adf1
+
+pkgname = libnetstack
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..36725000d12
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: Nick Black <dankamongmen@gmail.com>
+
+pkgname=libnetstack
+pkgver=0.3.0
+pkgrel=1
+pkgdesc="Networking stack cache atop netlink"
+url="https://nick-black.com/dankwiki/index.php/Libnetstack"
+license=('Apache')
+arch=('x86_64')
+depends=('ncurses')
+makedepends=('gtest' 'cmake' 'libnl')
+source=("https://github.com/dankamongmen/libnetstack/archive/v${pkgver}.tar.gz")
+
+build() {
+ cd "$pkgname-$pkgver"
+ mkdir -p build
+ cd build
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
+ make
+}
+
+package() {
+ cd "$pkgname-$pkgver/build"
+ make DESTDIR="$pkgdir/" install
+}
+
+check() {
+ cd "$pkgname-$pkgver/build"
+ make test
+}
+
+sha256sums=('6470e6da7e0a8c74dad46a66c943f1704994f6d69510c6201a9b1585856fa9c4')