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

25 lines
840 B
Bash

# Template file for 'spacefm'
pkgname=spacefm
version=1.0.6
revision=2
build_style=gnu-configure
configure_args="$(vopt_with gtk3)"
hostmakedepends="pkg-config intltool"
makedepends="$(vopt_if gtk3 gtk+3-devel gtk+-devel)
startup-notification-devel eudev-libudev-devel ffmpegthumbnailer-devel"
depends="hicolor-icon-theme desktop-file-utils"
short_desc="Multi-panel tabbed file manager"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="http://ignorantguru.github.io/spacefm/"
distfiles="https://github.com/IgnorantGuru/spacefm/archive/${version}.tar.gz"
checksum=fedea9fcad776e0af4b8d90c5a1c86684a9c96ef1cdd4e959530ce93bdebe7c9
conf_files="/etc/spacefm/spacefm.conf"
build_options="gtk3"
build_options_default="gtk3"
CFLAGS="-fcommon"
post_patch() {
vsed -i -e '/DATADIRNAME=/s/=.*/=share/' configure
}