summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Lambiris2019-02-23 00:01:47 -0500
committerTony Lambiris2019-02-23 00:01:47 -0500
commit340ddbcac27fe4589e1365bafcbb3da49e54dac5 (patch)
tree27b0a4c6f72fa2a6c824331cc6476f596dc80236
downloadaur-340ddbcac27fe4589e1365bafcbb3da49e54dac5.tar.gz
Initial commit
-rw-r--r--.SRCINFO18
-rw-r--r--.gitignore5
-rw-r--r--PKGBUILD39
3 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..18bcf22c148
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+pkgbase = nvtop-git
+ pkgdesc = A (h)top like task monitor for NVIDIA GPUs
+ pkgver = 1.0.0.r3.g453f025
+ pkgrel = 1
+ url = https://github.com/Syllo/nvtop
+ arch = x86_64
+ license = GPL3
+ makedepends = cmake
+ makedepends = cuda
+ depends = nvidia-utils
+ depends = ncurses
+ provides = nvtop
+ conflicts = nvtop
+ source = nvtop-git::git+https://github.com/Syllo/nvtop.git
+ sha256sums = SKIP
+
+pkgname = nvtop-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..af9f380f8ce
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,5 @@
+src
+pkg
+nvtop-git
+*pkg.tar.xz
+tags
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ccab1af9c21
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Tony Lambiris <tony@criticalstack.com>
+
+pkgname=nvtop-git
+pkgver=1.0.0.r3.g453f025
+pkgrel=1
+pkgdesc="A (h)top like task monitor for NVIDIA GPUs"
+arch=('x86_64')
+url="https://github.com/Syllo/nvtop"
+license=('GPL3')
+depends=('nvidia-utils' 'ncurses')
+makedepends=('cmake' 'cuda')
+provides=('nvtop')
+conflicts=('nvtop')
+source=("${pkgname}::git+https://github.com/Syllo/nvtop.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "${pkgname}"
+
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+
+ mkdir -p build
+
+ cmake . -Wno-dev -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release -B build
+ make -C build
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+
+ make -C build DESTDIR="$pkgdir/" install
+
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}