-
-
Save mbohun/4803b6366051578f91b7a4d2e4c96c90 to your computer and use it in GitHub Desktop.
APKBUILD for nvtop for alpine with ardeno gpu support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Serg Podtynnyi <[email protected]> | |
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 | |
libdrm-dev | |
" | |
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