Newer
Older
pkgname=lib32-systemd
_pkgbasename=systemd
_tag='1a43f634534bcafd9cbb39b93ce06783a3d92ae4' # git rev-parse v${_tag_name}
_tag_name=255-rc4
arch=('x86_64')
license=('GPL2' 'LGPL2.1')
depends=('lib32-gcc-libs' 'lib32-libcap' 'lib32-libgcrypt' 'lib32-libxcrypt'
makedepends=('git' 'gperf' 'intltool' 'lib32-acl' 'lib32-bzip2'
'lib32-curl' 'lib32-dbus' 'lib32-gcc-libs' 'lib32-glib2'
'lib32-gnutls' 'lib32-libelf' 'lib32-libidn2' 'lib32-pcre2'
'libxslt' 'meson' 'python-jinja')
provides=('libsystemd.so' 'libudev.so')
validpgpkeys=('63CDA1E5D3FC22B998D20DD6327F26951A015CC4' # Lennart Poettering <lennart@poettering.net>
'A9EA9081724FFAE0484C35A1A81CEA22BC8C7E2E' # Luca Boccassi <luca.boccassi@gmail.com>
'9A774DB5DB996C154EBBFBFDA0099A18E29326E1' # Yu Watanabe <watanabe.yu+github@gmail.com>
'5C251B5FC54EB2F80F407AAAC54CA336CFEB557E') # Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
source=("git+https://github.com/systemd/systemd-stable#tag=${_tag}?signed"
"git+https://github.com/systemd/systemd#tag=v${_tag_name%.*}?signed")
# add upstream repository for cherry-picking
if [[ "${_c}" == *..* ]]; then _l='--reverse'; else _l='--max-count=1'; fi
git log --oneline "${_l}" "${_c}"
git cherry-pick --mainline 1 --no-commit "${_c}"
if [[ "${_c}" == *..* ]]; then _l='--reverse'; else _l='--max-count=1'; fi
git log --oneline "${_l}" "${_c}"
git revert --mainline 1 --no-commit "${_c}"
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
local _timeservers=({0..3}.arch.pool.ntp.org)
local _nameservers=(
# We use these public name services, ordered by their
# privacy policy (hopefully):
# * Cloudflare (https://1.1.1.1/)
# * Google (https://developers.google.com/speed/public-dns/)
'1.1.1.1#cloudflare-dns.com'
'9.9.9.9#dns.quad9.net'
'8.8.8.8#dns.google'
'2606:4700:4700::1111#cloudflare-dns.com'
'2620:fe::9#dns.quad9.net'
'2001:4860:4860::8888#dns.google'
# internal version comparison is incompatible with pacman:
# 249~rc1 < 249 < 249.1 < 249rc
-Dversion-tag="${_tag_name/-/\~}-${pkgrel}-arch"
-Dshared-lib-tag="${pkgver}-${pkgrel}"
# components & features
-Dapparmor=false
-Dbacklight=false
-Dbinfmt=false
-Dbootloader=false
-Dbpf-framework=false
-Dcoredump=false
-Dcreate-log-dirs=false
-Defi=false
-Denvironment-d=false
-Dfirstboot=false
-Dhibernate=false
-Dhomed=false
-Dhostnamed=false
-Dhtml=false
-Dhwdb=false
-Dimportd=false
-Dldconfig=false
-Dlibcryptsetup-plugins=false
-Dlibfido2=false
-Dlogind=false
-Dlz4=false
-Dmachined=false
-Dman=false
-Dmicrohttpd=false
-Dnetworkd=false
-Dnss-myhostname=true
-Dnss-mymachines=true
-Dnss-resolve=true
-Dnss-systemd=true
-Doomd=false
-Dpam=false
-Dpasswdqc=false
-Dportabled=false
-Dpstore=false
-Dpwquality=false
-Dqrencode=false
-Drandomseed=false
-Dremote=false
-Drepart=false
-Dresolve=false
-Dresolve=true
-Drfkill=false
-Dseccomp=false
-Dselinux=false
-Dsysext=false
-Dtimedated=false
-Dtimesyncd=false
-Dtpm2=false
-Dtpm=false
-Dukify=false
-Duserdb=false
-Dutmp=false
-Dvconsole=false
-Dxdg-autostart=false
-Dxenctrl=false
-Dxkbcommon=false
-Dnologin-path=/usr/bin/nologin
-Dntp-servers="${_timeservers[*]}"
-Ddns-servers="${_nameservers[*]}"
-Drpmmacrosdir=no
-Dsysvinit-path=
-Dsysvrcnd-path=
# this uses malloc_usable_size, which is incompatible with fortification level 3
export CFLAGS="${CFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
export CXXFLAGS="${CXXFLAGS/_FORTIFY_SOURCE=3/_FORTIFY_SOURCE=2}"
arch-meson "$_pkgbasename-stable" build "${_meson_options[@]}"
package() {
meson install -C build --destdir "$pkgdir"
rm -rf "${pkgdir}"/usr/{bin,include,lib,lib32/systemd,share}