summaryrefslogtreecommitdiff
path: root/manualPorts/journalctl/Pkgfile
blob: ea3bf0c8b4b43619860c9d8f6fb87197c3cc0a3c (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
# Description: journalctl from systemd
# URL: https://github.com/systemd/systemd
# Maintainer: Erich Eckner, crux at eckner dot net
# Depends on: meson lz4 python3-jinja

name=journalctl
version=249.4
release=1
source=("https://github.com/systemd/systemd-stable/archive/v$version.tar.gz")

build() {

  find systemd-stable-${version} \
    -type f \
    -exec sed -i "s/'debug'/'debugg'/g" {} \;
  meson systemd-stable-${version} build -Dlz4=true -Defi=false -Dgnu-efi=false
  ninja -C build
  ninja -C build man/journalctl.1
  ldd build/journalctl
  install -Dm755 build/journalctl "$PKG/bin/journalctl"
  install -Dm644 build/man/journalctl.1 "$PKG/usr/share/man/man1/journalctl.1"
  install -Dt "$PKG/lib" -m755 $(
    ldd build/journalctl \
    | sed '
      s@^\s\+\S\+\s\+=>\s\+\('"${SRC%/}"'\S\+\)\s.*$@\1@
      t
      d
    '
  )
}