PKGBUILDs/community/btop/PKGBUILD
2021-11-22 19:22:58 -05:00

29 lines
638 B
Bash

# Maintainer: Caleb Maclennan <caleb@alerque.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable lto
pkgname=btop
pkgver=1.1.1
pkgrel=1
pkgdesc='A monitor of system resources, bpytop ported to C++'
arch=(x86_64 aarch64 i686)
url="https://github.com/aristocratos/$pkgname"
license=(Apache)
depends=(gcc-libs)
_archive="$pkgname-$pkgver"
source=("$_archive.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('7ee14e5e46a9864bba8f12de26ca216939c28b15a4f37fac9688f933a626382c')
build() {
cd "$_archive"
sed -i 's/-flto\S*//' Makefile
make all
}
package() {
cd "$_archive"
make DESTDIR="$pkgdir" PREFIX=/usr install
}