void-packages/srcpkgs/jwm/template
Đoàn Trần Công Danh 1a06b0d5d7 srcpkgs/j*: 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

22 lines
742 B
Bash

# Template file for 'jwm'
pkgname=jwm
version=2.3.7
revision=2
build_style=gnu-configure
hostmakedepends="gettext pkg-config which"
makedepends="
librsvg-devel libjpeg-turbo-devel libpng-devel libXext-devel
libXrender-devel libXmu-devel libXft-devel libXinerama-devel
libXpm-devel fribidi-devel"
short_desc="A light-weight window manager for the X11 Window System"
maintainer="rGabiru <rui.flora@gmail.com>"
license="MIT"
conf_files="/etc/system.jwmrc"
homepage="http://joewing.net/projects/jwm"
distfiles="http://joewing.net/projects/jwm/releases/jwm-$version.tar.xz"
checksum=745d2f5df3a4ce9ecc8e75445edb3fbe31dd46c0c26d129cc14de7ad8b665326
post_install() {
vinstall ${FILESDIR}/jwm.desktop 644 usr/share/xsessions
vlicense LICENSE
}