Skip to content

Instantly share code, notes, and snippets.

@shtirlic
Last active May 31, 2023 03:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save shtirlic/0dbba4f8d2e45499295acf7179342c21 to your computer and use it in GitHub Desktop.
Save shtirlic/0dbba4f8d2e45499295acf7179342c21 to your computer and use it in GitHub Desktop.
APKBUILD for nvtop for alpine with ardeno gpu support
# Maintainer: Serg Podtynnyi <serg@podtynnyi.com>
pkgname=nvtop
pkgver=3.0.2
pkgrel=1
pkgdesc="GPUs process monitoring for AMD, Intel,NVIDIA and Adreno"
url="https://github.com/Syllo/nvtop"
arch="aarch64"
license="GPL3"
depends="
ncurses
libdrm
"
makedepends="
cmake
ninja
libdrm-dev
ncurses-dev
ncurses-libs
"
checkdepends=""
install=""
subpackages="$pkgname-doc"
#source="https://github.com/Syllo/nvtop/archive/$pkgver/$pkgname-$pkgver.tar.gz"
source="https://github.com/Syllo/nvtop/archive/refs/heads/master.zip"
#builddir="$srcdir/$pkgname-$pkgver"
builddir="$srcdir/$pkgname-master"
build() {
if [ "$CBUILD" != "$CHOST" ]; then
CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
fi
cmake -B build -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_SHARED_LIBS=ON \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DINTEL_SUPPORT=OFF \
-DAMDGPU_SUPPORT=OFF \
-DNVIDIA_SUPPORT=OFF \
-DMSM_SUPPORT=ON \
$CMAKE_CROSSOPTS
cmake --build build
}
check() {
ctest --test-dir build --output-on-failure
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
70caf9efd1bf7718e53094cb6ebef4910e32991f9ea094e2cf99f549f7c0397c10ce06793fdcf8db8d9a2980891a41b6270fbf2cc9ec2fc7f5a5d6206871a792 master.zip
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment