```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 ```
43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Template file for 'lxdm'
|
|
pkgname=lxdm
|
|
version=0.5.3
|
|
revision=4
|
|
build_style=gnu-configure
|
|
configure_args="--disable-consolekit --with-pam --enable-gtk3"
|
|
hostmakedepends="automake gettext-devel libtool pkg-config intltool"
|
|
makedepends="pam-devel gtk+3-devel iso-codes"
|
|
conf_files="
|
|
/etc/lxdm/LoginReady
|
|
/etc/lxdm/PostLogin
|
|
/etc/lxdm/PostLogout
|
|
/etc/lxdm/PreLogin
|
|
/etc/lxdm/PreReboot
|
|
/etc/lxdm/PreShutdown
|
|
/etc/lxdm/Xsession
|
|
/etc/lxdm/lxdm.conf
|
|
/etc/pam.d/lxdm"
|
|
system_groups="lxdm"
|
|
short_desc="GUI login manager for LXDE"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://lxde.org"
|
|
distfiles="${SOURCEFORGE_SITE}/lxdm/lxdm-${version}.tar.xz"
|
|
checksum=4891efee81c72a400cc6703e40aa76f3f3853833d048b72ec805da0f93567f2f
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
pre_build() {
|
|
sed -i 's,@DATADIRNAME@,share,g' -i po/Makefile
|
|
}
|
|
post_install() {
|
|
vsv lxdm
|
|
# Use our own pam file.
|
|
rm -f ${DESTDIR}/etc/pam.d/lxdm
|
|
vinstall ${FILESDIR}/lxdm.pam 644 etc/pam.d lxdm
|
|
# use tty7 for X without systemd
|
|
sed -i 's,vt1,vt7,g' ${DESTDIR}/etc/lxdm/lxdm.conf
|
|
sed -i 's,/usr/sbin,/usr/bin,g' ${DESTDIR}/usr/bin/lxdm
|
|
vmkdir var/lib/lxdm
|
|
echo 'GDK_CORE_DEVICE_EVENTS=true' > ${DESTDIR}/var/lib/lxdm/.pam_environment
|
|
}
|