pkgname=btop pkgver=1.4.6 pkgdesc='A monitor of system resources, bpytop ported to C++' arch=(x86_64) homepage="https://github.com/aristocratos/$pkgname" license=(Apache-2.0) depends=(gcc glibc) makedepends=(lowdown rocm-smi) optdepends=('rocm-smi: AMD GPU support') sources=("${pkgname}-${pkgver}.tar.gz" "cattpuccin-mocha-tokyo.theme" ) urls=("$homepage/archive/v$pkgver/${sources[0]}" "cattpuccin-mocha-tokyo.theme" ) md5sums=("6e7c9b1fe7e1894d1e66c5557e1abf62" "bd080ccc052dab89ec3d7d6c644035db" ) src_prepare() { tar -xf ${distdir}/${sources[0]} --strip-components=1 cp -v ${filedir}/${sources[1]} themes/ } src_build() { local mycmakeargs=( -DCMAKE_INSTALL_PREFIX=/usr -B build -DBTOP_GPU=true -DBTOP_RSMI_STATIC=false -DBTOP_STATIC=false # These settings can be controlled in make.conf CFLAGS/CXXFLAGS -DBTOP_LTO=false ) cmake "${mycmakeargs[@]}" cmake --build build } src_install() { DESTDIR="$pkgdir" cmake --install build make DESTDIR="$pkgdir" PREFIX=/usr setcap } # vim:ft=sh syn=sh et sw=2: