blob: 7061a5f2665705f0ee289b487d3a90f334056571 (
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: Michael Schubert <mschu.dev at gmail> github.com/mschubert/PKGBUILDs
pkgname=gnome-shell-extension-soft-brightness-git
pkgver=2019.12.r857.g7abc3c1
pkgrel=1
pkgdesc='Manage your display brightness via an alpha overlay (instead of the backlight).'
url='https://github.com/jkitching/soft-brightness-plus'
license=(GPL-3.0-or-later)
arch=(any)
depends=('gnome-shell>=45')
makedepends=('git' 'meson>=0.50' 'm4')
source=($pkgname::git+$url build.patch)
sha256sums=('SKIP'
'9b5d81c37d06ffef37340f0a70ea613c90d8b80e08f43750e2605478e2de8716')
_uuid="soft-brightness-plus@joelkitching.com"
_schema="org.gnome.shell.extensions.soft-brightness-plus.gschema.xml"
prepare() {
cd $pkgname
patch -Np1 -i ../build.patch
meson-gse/meson-gse
}
pkgver() {
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
arch-meson $pkgname build --wipe
}
check(){
meson test -C build --print-errorlogs
}
package() {
meson install -C build --destdir="$pkgdir"
install -Dm644 "$pkgdir"/usr/share/gnome-shell/extensions/$_uuid/schemas/$_schema -t \
"$pkgdir"/usr/share/glib-2.0/schemas
rm -rf "$pkgdir"/usr/share/gnome-shell/extensions/$_uuid/schemas/
}
|