Skip to content

Instantly share code, notes, and snippets.

@mbohun
Forked from shtirlic/APKBUILD
Created May 26, 2023 09:48
Show Gist options
  • Save mbohun/4803b6366051578f91b7a4d2e4c96c90 to your computer and use it in GitHub Desktop.
Save mbohun/4803b6366051578f91b7a4d2e4c96c90 to your computer and use it in GitHub Desktop.
APKBUILD for nvtop for alpine with ardeno gpu support
# 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