blob: 82447535534c456b1c48c099e97b6d16129fb18e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Maintainer: Louis Dalibard <ontake (at) ontake (dot) dev>
pkgname=plasma6-applets-optimus-gpu-switcher-git
_gitpkgname=optimus-gpu-switcher
pkgver=r138.a298529
pkgrel=1
pkgdesc="KDE Plasma widget to change the GPU mode using the EnvyControl command line tool."
arch=(any)
url=https://github.com/enielrodriguez/optimus-gpu-switcher
license=(GPL-3.0-only)
depends=(
kdeplasma-addons
libplasma
plasma5support
envycontrol
)
makedepends=(git)
optdepends=(
'libnotify: notification support'
'zenity: support for displaying GTK dialog boxes'
)
conflicts=()
source=($_gitpkgname::git+https://github.com/enielrodriguez/$_gitpkgname)
b2sums=(SKIP)
pkgver() {
cd $_gitpkgname
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd $_gitpkgname
mkdir -p "$pkgdir"/usr/share/plasma/plasmoids/
kpackagetool6 -t Plasma/Applet -i ./ -p "$pkgdir"/usr/share/plasma/plasmoids/
}
|