void-packages/srcpkgs/sddm/template
Đoàn Trần Công Danh 4b97cd2fb4 srcpkgs/s*: convert patches to -Np1
```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
```
2021-06-20 13:17:29 +07:00

36 lines
1.1 KiB
Bash

# Template file for 'sddm'
pkgname=sddm
version=0.19.0
revision=3
build_style=cmake
configure_args="-DBUILD_MAN_PAGES=ON -DNO_SYSTEMD=ON -DUSE_ELOGIND=ON
-DLOGIN_DEFS_PATH=${XBPS_SRCPKGDIR}/shadow/files/login.defs
-DDBUS_CONFIG_FILENAME=sddm_org.freedesktop.DisplayManager.conf"
hostmakedepends="extra-cmake-modules pkg-config python3-docutils"
makedepends="qt5-declarative-devel qt5-tools-devel pam-devel elogind-devel"
depends="dbus"
short_desc="QML based X11 display manager"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="GPL-2.0-or-later, CC-BY-3.0"
homepage="http://github.com/sddm/sddm"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
checksum=e76da1f13d5ad5e0179e3fec57543126044339405ef19c397e105e0807bd4e41
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" sddm qt5-host-tools qt5-qmake qt5-tools"
fi
system_accounts="sddm"
sddm_homedir="/var/lib/sddm"
sddm_groups="video"
conf_files="
/etc/pam.d/sddm
/etc/pam.d/sddm-greeter
/etc/pam.d/sddm-autologin"
make_dirs="/var/lib/sddm 0755 sddm sddm"
post_install() {
vsed -i '/tally/d' ${DESTDIR}/etc/pam.d/sddm-autologin
vsv sddm
vlicense LICENSE.CC-BY-3.0
}