blob: 47cc074df6bbf2af677e5452c6f3f2aa5bbd4e83 (
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
35
36
37
38
39
40
|
# Maintainer: vagnum08 <vagnum08@gmail.com>
pkgname=cpupower-gui-git
pkgver=1.0.0.r0.g2a9069e
pkgrel=2
pkgdesc="A GUI utility to set CPU frequency limits"
arch=(any)
url="https://github.com/vagnum08/cpupower-gui"
license=('GPL')
depends=('python' 'gtk3' 'hicolor-icon-theme' 'polkit' 'python-dbus' 'python-gobject' 'python-pyxdg' 'libhandy')
optdepends=('polkit-gnome: needed for authentification in Cinnamon, Gnome'
'lxsession: needed for authentification in Xfce, LXDE etc.'
'libappindicator-gtk3: needed for tray icon')
makedepends=('git' 'meson' 'pkg-config' 'appstream-glib' 'desktop-file-utils')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install=cpupower_gui.install
source=("${pkgname%-git}::git+https://github.com/vagnum08/cpupower-gui.git")
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
meson --prefix /usr -Dsystemddir=/usr/lib/systemd --buildtype=plain "$srcdir/${pkgname%-git}" build
ninja -C build
}
package() {
DESTDIR="$pkgdir" ninja -C build install
install -d -o root -g 102 -m 750 "$pkgdir/usr/share/polkit-1/rules.d"
}
|