void-packages/srcpkgs/ulauncher/template
Đoàn Trần Công Danh 5769f150de srcpkgs/u*: 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

21 lines
836 B
Bash

# Template file for 'ulauncher'
pkgname=ulauncher
version=5.11.0
revision=1
wrksrc=${pkgname}
build_style=python3-module
hostmakedepends="python3-distutils-extra intltool python3-Levenshtein
python3-dbus python3-gobject python3-inotify python3-websocket-client
python3-xdg"
depends="libappindicator>=12.10.0_2 libkeybinder3 python3-Levenshtein python3-dbus
python3-gobject python3-inotify python3-websocket-client python3-xdg webkit2gtk"
short_desc="Linux application launcher with fuzzy search and extensions"
maintainer="Alberto Pau <me@albertopau.com>"
license="GPL-3.0-or-later"
homepage="https://ulauncher.io/"
distfiles="https://github.com/Ulauncher/Ulauncher/releases/download/${version}/${pkgname}_${version}.tar.gz"
checksum=c4433bb06d0d456a2e0eee8dc4d03de164f273290484f2380728c3936ca31e3a
pre_build() {
export DISPLAY=
}