blob: cfe8f65191ef01f9272507f084714d2cddec1ea1 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>
pkgname=caffeine-ng
pkgver=4.2.0
pkgrel=2
pkgdesc="Status bar application able to temporarily inhibit the screensaver and sleep mode."
arch=(any)
url="https://codeberg.org/WhyNotHugo/caffeine-ng"
license=("GPL-3.0-or-later")
depends=(
python-gobject
python-xdg
python-dbus
python-click
python-ewmh
gtk3
libnotify
python-setproctitle
python-wheel
python-pulsectl
libindicator-gtk3
libayatana-appindicator
)
optdepends=(
# "libappindicator-gtk3: AppIndicator support (eg: Plasma, Unity)."
"xfconf: Support for Xfce presentation mode."
)
makedepends=(
git
meson
scdoc
)
conflicts=(caffeine caffeine-bzr caffeine-oneclick caffeine-systray)
provides=(caffeine caffeine-bzr caffeine-oneclick caffeine-systray)
replaces=(caffeine-oneclick caffeine-systray)
source=(
"caffeine-ng-$pkgver.tar.gz::https://codeberg.org/attachments/6da08199-604f-4f0f-b9dd-c50efe587965"
mandir.patch
)
sha512sums=(
'ff732b56baa96f9f8eb0d05b502c56612cbd5a9c48c65820724c3abbb9ad4e2770997285cb0e4a1617cc5c70c8881a015451b4c00a6513daada97b93920a2cf8'
'42067f449524519815afd2f76ada2ddcb6b5f6f174a968e45b904fd5a6da8e5621e8d67daec3ac0f32fe08a0f26074ea429d6c44849312ecc41f8793ff47a839'
)
build() {
cd "$srcdir/caffeine-ng-v${pkgver}-0-g5027f55"
patch -Np0 -i ../mandir.patch
arch-meson . build
meson compile -C build
}
check() {
cd "$srcdir/caffeine-ng-v${pkgver}-0-g5027f55"
meson test --no-rebuild --print-errorlogs -C build
}
package() {
cd "$srcdir/caffeine-ng-v${pkgver}-0-g5027f55"
DESTDIR="$pkgdir" meson install --no-rebuild -C build
}
|