blob: 4d9e5bd30ec0ca79bf09e0b9c5d193d7faf5ad8c (
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
|
# Maintainer: Aseem Athale <athaleaseem@gmail.com>
# Contributor: Hugo Osvaldo Barrera <hugo@barrera.io>
pkgname=caffeine-ng-git
_pkgname=caffeine-ng
pkgver=4.2.0.r45.g8318401
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' 'python-click' 'python-dbus' 'python-ewmh' 'python-gobject' 'python-pulsectl' 'python-setproctitle' 'gtk3' 'libnotify' 'libayatana-appindicator' 'libayatana-indicator' 'xdg-utils')
makedepends=('git' 'meson' 'scdoc')
optdepends=('xfconf: Optional configuration hook when using XFCE, not needed for other desktops'
'libindicator-gtk3: Original now unmaintained library, kept as optdepends for backwards compatibility'
'libappindicator-gtk3: Original now unmaintained library, kept as optdepends for backwards compatibility'
)
conflicts=('caffeine' 'caffeine-bzr' 'caffeine-ng' 'caffeine-ng-regex')
provides=('caffeine' 'caffeine-bzr' 'caffeine-ng' 'caffeine-ng-regex')
source=("git+https://codeberg.org/WhyNotHugo/$_pkgname.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/$_pkgname"
arch-meson build
meson compile -C build
}
check() {
cd "$srcdir/$_pkgname"
meson test -C build
}
package() {
cd "$srcdir/$_pkgname"
meson install -C build --destdir "$pkgdir"
}
|