void-packages/srcpkgs/nitroshare/template
Đoàn Trần Công Danh 65749575ab srcpkgs/n*: 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
835 B
Bash

# Template file for 'nitroshare'
pkgname=nitroshare
version=0.3.4
revision=1
wrksrc="nitroshare-desktop-${version}"
build_style=cmake
pycompile_dirs="usr/share/nautilus-python/extensions
usr/share/nemo-python/extensions
usr/share/caja-python/extensions"
hostmakedepends="pkgconf qt5-qmake"
makedepends="qt5-devel qt5-tools-devel qt5-svg-devel libnotify
qhttpengine-devel qmdnsengine-devel"
short_desc="Network file transfer application"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="http://nitroshare.net"
distfiles="https://github.com/nitroshare/nitroshare-desktop/archive/${version}.tar.gz"
checksum=29874e5909c29211a3c9e13f8c0f49b901ec2996e5d60d80af80d2fb80c3d7ec
python_version=2 #unverified
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools"
fi
post_install() {
vlicense LICENSE.txt
}