void-packages/srcpkgs/slim/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

27 lines
864 B
Bash

# Template file for 'slim'
pkgname=slim
version=1.3.6
revision=13
build_style=cmake
configure_args="-DUSE_CONSOLEKIT=no -DUSE_PAM=yes"
conf_files="/etc/slim.conf /etc/pam.d/slim"
hostmakedepends="pkg-config"
makedepends="libpng-devel freetype-devel libjpeg-turbo-devel libXrandr-devel
libXmu-devel libXft-devel pam-devel"
short_desc="Desktop-independent graphical login manager for X11"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://sourceforge.net/projects/slim.berlios/"
distfiles="${SOURCEFORGE_SITE}/slim.berlios/slim-${version}.tar.gz"
checksum=21defeed175418c46d71af71fd493cd0cbffd693f9d43c2151529125859810df
lib32disabled=yes
case "$XBPS_TARGET_MACHINE" in
*-musl) CXXFLAGS="-DNEEDS_BASENAME";;
esac
post_install() {
vsv slim
vinstall ${FILESDIR}/slim.pam 644 etc/pam.d slim
rm -rf ${DESTDIR}/lib/systemd
}