git » systemd.git » main » tree

[main] / PKGBUILD

pkgname=systemd
pkgver=255
pkgrel=5
arch=('armv7h' 'aarch64')
license=('unknown')
source=("$pkgname-$pkgver.tar.gz"
	"systemd-255-upstream_fixes-1.patch"
	"systemd-man-pages-255.tar.xz"
)

provides=("systemd-libs=$pkgver")

prepare() {
	cd "$pkgname-$pkgver"
	sed -i -e 's/GROUP="render"/GROUP="video"/' \
	       -e 's/GROUP="sgx", //' rules.d/50-udev-default.rules.in
	patch -Np1 -i "$srcdir/systemd-255-upstream_fixes-1.patch"
}

build() {
	cd "$pkgname-$pkgver"
	mkdir -p build
	cd build
	local _meson_options=(
      --prefix=/usr                 
      --buildtype=release           
      -Ddefault-dnssec=no           
      -Dinstall-tests=false         
      -Drpmmacrosdir=no             
      -Dhomed=disabled              
      -Duserdb=false                
      -Dman=disabled                
      -Dmode=release                
      -Ddev-kvm-mode=0660           
      -Dnobody-group=nogroup        
      -Dsysupdate=disabled          
      -Dukify=disabled              
      -Ddocdir=/usr/share/doc/systemd-$pkgver
	)
	if [ -z "$ARMLFS_NO_PAM" ]; then
	_meson_options+=( -Dpamconfdir=/etc/pam.d )
	else
	_meson_options+=( -Dpamconfdir=no )
	fi

	meson setup "${_meson_options[@]}" . ..
	ninja
}

package() {
	cd "$pkgname-$pkgver/build"
	DESTDIR="$pkgdir" ninja install
	cd ../..
	mkdir -p "$pkgdir"/usr/share/man
	cp -a systemd-man-pages-255/* "$pkgdir"/usr/share/man/
	rm -rf "$pkgdir"/usr/share/factory/etc/issue

	# ship default policy to leave services disabled
	echo 'disable *' >"$pkgdir"/usr/lib/systemd/system-preset/99-default.preset
}
sha256sums=('28854ffb2cb5f9e07fcbdbaf1e03a80b3462a12edeef84893ca2f37b22e4491e'
            '139dfec2705b5c2827f6c1a68d0717ab0f397517accd5e07b5c5450d24ea9dc8'
            'd254532b7139bcc4301ebe2f1f76bc6eaf0360ca90a413d31951c6aa83de665c')