summaryrefslogtreecommitdiff
path: root/user/systemd/APKBUILD
blob: 2e439532402931a0638fd35cc901632fad0d3a45 (plain) (blame)
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
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=systemd
pkgver=256.5
pkgrel=0
pkgdesc="System and service manager"
url="https://systemd.io/"
arch="all"
license="GPL-2.0-only"
depends="dbus 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"
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() {
	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"