PKGBUILDs/extra/btop/PKGBUILD

32 lines
716 B
Bash
Raw Normal View History

2021-10-01 23:42:11 +00:00
# Maintainer: Caleb Maclennan <caleb@alerque.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable lto
2024-02-12 13:54:11 +00:00
# - remove makedepend on rocm-smi-lib
2021-10-01 23:42:11 +00:00
pkgname=btop
2024-02-13 01:09:11 +00:00
pkgver=1.3.2
pkgrel=1
2021-10-28 00:40:57 +00:00
pkgdesc='A monitor of system resources, bpytop ported to C++'
2022-01-17 14:40:57 +00:00
arch=(x86_64)
2021-10-01 23:42:11 +00:00
url="https://github.com/aristocratos/$pkgname"
license=(Apache)
2024-01-13 23:17:44 +00:00
depends=(gcc-libs
glibc)
2024-02-11 19:39:18 +00:00
optdepends=('rocm-smi-lib: AMD GPU support')
2021-10-01 23:42:11 +00:00
_archive="$pkgname-$pkgver"
2022-01-17 14:40:57 +00:00
source=("$url/archive/v$pkgver/$_archive.tar.gz")
2024-02-13 01:09:11 +00:00
sha256sums=('331d18488b1dc7f06cfa12cff909230816a24c57790ba3e8224b117e3f0ae03e')
2021-10-01 23:42:11 +00:00
build() {
cd "$_archive"
sed -i 's/-flto\S*//' Makefile
2024-02-11 19:39:18 +00:00
make all
2021-10-01 23:42:11 +00:00
}
package() {
cd "$_archive"
make DESTDIR="$pkgdir" PREFIX=/usr install
}