void-packages/srcpkgs/retroshare/template
Đoàn Trần Công Danh 103ab731ab srcpkgs/r*: convert patches to -Np1
* runit is kept at -Np0

```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

33 lines
1.2 KiB
Bash

# Template file for 'retroshare'
pkgname=retroshare
version=0.6.5
revision=6
wrksrc="RetroShare-${version}"
build_style=qmake
configure_args="RS_UPNP_LIB=miniupnpc"
hostmakedepends="pkg-config qt5-qmake qt5-host-tools"
makedepends="ffmpeg-devel libgnome-keyring-devel libmicrohttpd-devel
libopencv-devel libssh-devel miniupnpc-devel libXScrnSaver-devel libxslt-devel
pulseaudio-devel qt5-multimedia-devel qt5-tools-devel qt5-x11extras-devel
speex-devel sqlcipher-devel sqlite-devel rapidjson"
short_desc="Decentralized, private and secure commmunication and sharing platform"
maintainer="Abel Vdo <vdo@greyfaze.net>"
license="GPL-2.0-or-later, AGPL-3.0-or-later"
homepage="https://retroshare.cc"
distfiles="https://github.com/RetroShare/RetroShare/archive/v${version}.tar.gz"
checksum=901a1d1f282e04118fbe0e24190355b4a8f355a806cc5448738b1d691b46f5d5
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
makedepends+=" libatomic-devel"
fi
post_patch() {
# upnputil.c includes a C++ header, so make sure qmake recognizes it as C++
mv libretroshare/src/upnp/upnputil.{c,cc}
vsed -i libretroshare/src/libretroshare.pro \
-e 's,\bupnp/upnputil.c\b,upnp/upnputil.cc,'
}
post_install() {
vlicense LICENSE.txt
}