# Maintainer: A. Wilcox pkgname=systemd pkgver=256.5 pkgrel=0 pkgdesc="System and service manager" url="https://systemd.io/" arch="all" license="LGPL-2.1-only" depends="kmod" makedepends="utmps-dev linux-pam-dev acl-dev libidn2-dev libqrencode-dev libgpg-error-dev libgcrypt-dev gnutls-dev bzip2-dev xz-dev lz4-dev zstd-dev pcre2-dev py3-jinja2 meson util-linux-dev libcap-dev gperf kmod-dev" replaces="eudev eudev-libs elogind" provides="eudev=4.0.0 elogind=$pkgver udev=$pkgver" subpackages="$pkgname-dev $pkgname-doc" source="systemd-$pkgver.tar.gz::https://github.com/systemd/systemd/archive/refs/tags/v$pkgver.tar.gz amalgamation.patch " build() { export LDFLAGS="$LDFLAGS -lutmps -lskarnet" meson setup \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --wrap-mode=nofallback \ -Dsulogin-path=/sbin/sulogin \ -Dgshadow=false \ -Ddns-servers=9.9.9.9 \ -Dsupport-url=https://bts.adelielinux.org/ \ -Dnss-systemd=false -Dnss-myhostname=false -Dnss-mymachines=disabled -Dnss-resolve=disabled \ . build meson compile -C build } check() { meson test -C build } package() { DESTDIR="$pkgdir" meson install -C build } sha512sums="40558194e05a17b218adf3d6df48b738c866855d43d09c1e9381c2c568a44a8f1617b64476736fc7e34416ad9e8d25dc023cf9de090b4ef9079866919377009f systemd-256.5.tar.gz 9ab17d7ea81556818f473ab54165cc4dd64605cccbce62629f94b2a33a5de3477ccfd4d5c32951e04d068deae374ca7e78053c7806d06a93d3dccc7d14499712 amalgamation.patch"