7fc9190f0e
* gcc is kept at -Np0, because of void-cross ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
79 lines
2.2 KiB
Bash
79 lines
2.2 KiB
Bash
# Template file for 'gdm'
|
|
pkgname=gdm
|
|
version=40.0
|
|
revision=1
|
|
build_helper="gir"
|
|
build_style=meson
|
|
configure_args="
|
|
-Ddefault-pam-config=arch -Dat-spi-registryd-dir=/usr/libexec
|
|
-Dtcp-wrappers=false -Dscreenshot-dir=/var/lib/gdm/greeter
|
|
-Dplymouth=enabled -Dxauth-dir=/run/gdm -Dpid-file=/run/gdm/gdm.pid
|
|
-Dsystemd-journal=false -Dinitial-vt=7 -Dwayland-support=true
|
|
-Dselinux=disabled -Dlibaudit=disabled
|
|
-Dsystemdsystemunitdir=/tmp -Dsystemduserunitdir=/tmp"
|
|
hostmakedepends="dconf gettext itstool pkg-config"
|
|
makedepends="accountsservice-devel elogind-devel gettext-devel glib-devel
|
|
iso-codes libSM-devel libcanberra-devel nss-devel pam-devel upower-devel
|
|
plymouth-devel"
|
|
depends="gnome-settings-daemon gnome-shell gnome-session gnome-themes-extra
|
|
gsettings-desktop-schemas xorg-server xorg-server-xwayland xrdb"
|
|
checkdepends="check-devel"
|
|
short_desc="GNOME Display Manager"
|
|
maintainer="Enno Boland <gottox@voidlinux.org>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://wiki.gnome.org/Projects/GDM"
|
|
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
|
checksum=5ed74b739d3a232ffb1e4a132bcf965bdfe955d995b528773588775b02f2950e
|
|
|
|
conf_files="
|
|
/etc/gdm/custom.conf
|
|
/etc/pam.d/gdm-autologin
|
|
/etc/pam.d/gdm-fingerprint
|
|
/etc/pam.d/gdm-launch-environment
|
|
/etc/pam.d/gdm-password
|
|
/etc/pam.d/gdm-pin
|
|
/etc/pam.d/gdm-smartcard"
|
|
# Create the 'gdm' system user/group.
|
|
system_accounts="gdm"
|
|
gdm_homedir="/var/lib/gdm"
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
build_options_default="gir"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" glib-devel pam-devel"
|
|
fi
|
|
|
|
post_install() {
|
|
vinstall $FILESDIR/Xsession 755 etc/gdm
|
|
|
|
vsed -i "s/pam_systemd\.so/pam_elogind.so/" $DESTDIR/etc/pam.d/*
|
|
vsed -i '/pam_tally.so/d' \
|
|
$DESTDIR/etc/pam.d/gdm-smartcard \
|
|
$DESTDIR/etc/pam.d/gdm-fingerprint
|
|
rm -rf ${DESTDIR}/tmp
|
|
|
|
# runit service
|
|
vsv gdm
|
|
}
|
|
|
|
libgdm_package() {
|
|
short_desc+=" - runtime libraries"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.so.*"
|
|
}
|
|
}
|
|
|
|
gdm-devel_package() {
|
|
depends="libgdm>=${version}_${revision} elogind-devel"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|