mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-25 02:52:13 +08:00
37 lines
1008 B
Bash
37 lines
1008 B
Bash
pkgname=plasma5-applets-bumblebee-indicator
|
|
_name=bumblebee-indicator
|
|
pkgver=0.3.5
|
|
pkgrel=1
|
|
pkgdesc="Indicates the Nvidia card's on or off status on the Optimus systems, when bumblebee is used."
|
|
arch=('x86_64')
|
|
url="https://github.com/bxabi/bumblebee-indicator"
|
|
license=('GPL')
|
|
group=('plasma5-applets')
|
|
depends=('plasma-workspace' 'qt5-graphicaleffects')
|
|
makedepends=('extra-cmake-modules')
|
|
source=("https://github.com/bxabi/bumblebee-indicator/archive/master.zip")
|
|
sha256sums=('f3336972bd94d01ae8b48d95ee7cdb409d41fa794ca3dc2888d6383fd1ec1b9e')
|
|
|
|
prepare() {
|
|
cd "${_name}-master"
|
|
mkdir -p build
|
|
}
|
|
|
|
build() {
|
|
cd "${_name}-master/build"
|
|
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DLIB_INSTALL_DIR=lib \
|
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
|
|
}
|
|
|
|
package() {
|
|
cd "${_name}-master"/build
|
|
|
|
make install DESTDIR="${pkgdir}"
|
|
mv $pkgdir/usr/share/plasma/plasmoids/bumblebee-kde5-plasmoid \
|
|
$pkgdir/usr/share/plasma/plasmoids/com.bxabi.bumblebee-indicator
|
|
}
|