void-packages/srcpkgs/xstarter/template
Đoàn Trần Công Danh 3353bf4722 srcpkgs/x*: 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

19 lines
601 B
Bash

# Template file for 'xstarter'
pkgname=xstarter
version=0.8.0
revision=2
build_style=cmake
hostmakedepends="pkg-config"
makedepends="glib-devel ncurses-devel"
short_desc="Application launcher for Linux"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://xstarter.org"
changelog="https://raw.githubusercontent.com/lchsk/xstarter/master/CHANGELOG"
distfiles="https://github.com/lchsk/xstarter/archive/v${version}.tar.gz"
checksum=cb82bf837a2693cbbad468812d517256e079d6aae56dde770d473b245603030a
pre_configure() {
vsed -i CMakeLists.txt -e's;-Wall;-fcommon &;'
}