🔧 Use cmake to build btop

This commit is contained in:
2022-02-08 18:11:36 +01:00
parent 49b61ee6d1
commit d74ef75908
2 changed files with 114 additions and 6 deletions

View File

@ -8,16 +8,21 @@ pkgdesc='A monitor of system resourecs, bpytop ported to C++'
arch=(x86_64 aarch64)
url="https://github.com/aristocratos/$pkgname"
license=(Apache)
depends=(coreutils sed )
makedepends=(build-essential gcc-10 g++-10)
depends=(coreutils sed)
makedepends=(cmake build-essential gcc-10 g++-10)
_archive="$pkgname-$pkgver"
source=("$_archive.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('59a87b9d0bb0f5010d53f0ac72ddee9fd7b5a4039bce51b94b262313e946df02')
source=("$_archive.tar.gz::$url/archive/v$pkgver.tar.gz" "CMakeLists.txt")
sha256sums=('59a87b9d0bb0f5010d53f0ac72ddee9fd7b5a4039bce51b94b262313e946df02' 'SKIP')
build() {
cd "$_archive"
make CXX=g++-10 all
cmake . \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DSTATIC=ON
make -j$(nproc)
}
package() {