Skip to content

Instantly share code, notes, and snippets.

@shtirlic
Last active May 31, 2023 03:24

Revisions

  1. shtirlic revised this gist May 31, 2023. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions APKBUILD
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,10 @@ depends="
    "
    makedepends="
    cmake
    ninja
    libdrm-dev
    ncurses-dev
    ncurses-libs
    "
    checkdepends=""
    install=""
  2. shtirlic created this gist May 26, 2023.
    53 changes: 53 additions & 0 deletions APKBUILD
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,53 @@
    # 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
    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
    "