mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
34 lines
918 B
Bash
34 lines
918 B
Bash
# Maintainer: Caleb Maclennan <caleb@alerque.com>
|
|
|
|
# Drop GPU_SUPPORT=false and re-add optdepends when upstream ROCm 6 support is addressed:
|
|
# - https://gitlab.archlinux.org/archlinux/packaging/packages/btop/-/issues/2
|
|
# - https://github.com/aristocratos/btop/issues/705
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - disable lto
|
|
|
|
pkgname=btop
|
|
pkgver=1.3.0
|
|
pkgrel=4
|
|
pkgdesc='A monitor of system resources, bpytop ported to C++'
|
|
arch=(x86_64)
|
|
url="https://github.com/aristocratos/$pkgname"
|
|
license=(Apache)
|
|
depends=(gcc-libs
|
|
glibc)
|
|
# optdepends=('rocm-smi-lib: AMD GPU support')
|
|
_archive="$pkgname-$pkgver"
|
|
source=("$url/archive/v$pkgver/$_archive.tar.gz")
|
|
sha256sums=('375e078ce2091969f0cd14030620bd1a94987451cf7a73859127a786006a32cf')
|
|
|
|
build() {
|
|
cd "$_archive"
|
|
sed -i 's/-flto\S*//' Makefile
|
|
make all GPU_SUPPORT=false
|
|
}
|
|
|
|
package() {
|
|
cd "$_archive"
|
|
make DESTDIR="$pkgdir" PREFIX=/usr install
|
|
}
|
|
|