summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 545cb29afb9c20b2fa6f1d82735e51fdb69c8f57 (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
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>

pkgname=caffeine-ng-git
_pkgname=caffeine-ng
pkgver=v4.0.2.r28.g5c7e1b5
pkgrel=1
pkgdesc="Status bar application able to temporarily inhibit the screensaver and sleep mode."
arch=(any)
url="https://codeberg.org/WhyNotHugo/caffeine-ng"
license=(GPL3)
depends=(
  python-gobject
  python-xdg
  dbus-python
  python-click
  python-ewmh
  gtk3
  libnotify
  python-setproctitle
  python-pulsectl
  libindicator-gtk3
  libappindicator-gtk3
  scdoc
)
makedepends=(
  git
  meson
)
conflicts=(caffeine caffeine-bzr caffeine-oneclick caffeine-systray caffeine-ng)
provides=(caffeine caffeine-bzr caffeine-oneclick caffeine-systray caffeine-ng)
replaces=(caffeine-oneclick caffeine-systray)
source=("git+https://codeberg.org/WhyNotHugo/$_pkgname.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --long | sed '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"
}