summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cc057d87a1833823293c9afbb10c41eba574eb36 (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
62
63
# Maintainer: Fabian Bornschein <fabiscafe@archlinux.org>
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Updated by Andrew Rembrandt <andrew@rembrandt.dev> to point to master branch

_pkgname=gnome-logs
pkgname=$_pkgname-git
pkgver=49.0+11+gd3d2ecc
pkgrel=1
pkgdesc="A log viewer for the systemd journal"
url="https://apps.gnome.org/Logs"
arch=(x86_64)
license=(GPL-3.0-only)
depends=(
  dconf
  gcc-libs
  glib2
  glibc
  gsettings-desktop-schemas
  gtk4
  hicolor-icon-theme
  libadwaita
  pango
  systemd
  systemd-libs
)
makedepends=(
  appstream
  git
  glib2-devel
  meson
  yelp-tools
)
groups=(gnome)
source=("git+https://gitlab.gnome.org/GNOME/gnome-logs.git")
b2sums=('SKIP')

pkgver() {
  cd $_pkgname
  git describe --tags | sed 's/^gnome-logs-//;s/-/+/g'
}

prepare() {
  cd $_pkgname
}

build() {
  local meson_options=(
    -D man=true
  )

  arch-meson $_pkgname build -D man=true
  ninja -C build
}

check() {
  meson test -C build --print-errorlogs
}

package() {
  meson install -C build --destdir "$pkgdir"
}

# vim:set sw=2 sts=-1 et: