# 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=255.22 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" {} \; # Some shells' echo interprets \x2d in the fuzz file name; use printf instead: # https://github.com/systemd/systemd/pull/40607 sed -i 's#echo @1@/\*/\*#printf "%s " @1@/*/*#' \ systemd-stable-${version}/test/fuzz/meson.build meson systemd-stable-${version} build -Dlz4=enabled -Defi=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 ' ) }