🐛 Fixed build on Ubuntu LTS
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
# Maintainer: Canony <canony@protonmail.ch>
|
||||
# Maintainer: Edgar <Edgar{at}AnotherFoxGuy.com>
|
||||
# Contributor: Canony <canony@protonmail.ch>
|
||||
# Contributor: Caleb Maclennan <caleb@alerque.com>
|
||||
|
||||
pkgname=btop
|
||||
@ -11,13 +12,18 @@ license=(Apache)
|
||||
depends=(coreutils sed)
|
||||
makedepends=(cmake build-essential gcc-10 g++-10)
|
||||
_archive="$pkgname-$pkgver"
|
||||
source=("$_archive.tar.gz::$url/archive/v$pkgver.tar.gz" "CMakeLists.txt")
|
||||
sha256sums=('59a87b9d0bb0f5010d53f0ac72ddee9fd7b5a4039bce51b94b262313e946df02' 'SKIP')
|
||||
source=("$_archive.tar.gz::$url/archive/v$pkgver.tar.gz" "CMakeLists.txt" "CheckLinkerFlag.cmake")
|
||||
sha256sums=('59a87b9d0bb0f5010d53f0ac72ddee9fd7b5a4039bce51b94b262313e946df02' 'SKIP' 'SKIP')
|
||||
|
||||
build() {
|
||||
cd "$_archive"
|
||||
|
||||
cp -f "$srcdir/CMakeLists.txt" .
|
||||
cp -f "$srcdir/CheckLinkerFlag.cmake" .
|
||||
|
||||
cmake . \
|
||||
-DCMAKE_C_COMPILER=gcc-10 \
|
||||
-DCMAKE_CXX_COMPILER=g++-10 \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DSTATIC=ON
|
||||
|
Reference in New Issue
Block a user