void-packages/srcpkgs/retroshare/template
2021-01-11 23:02:30 -05:00

30 lines
1.2 KiB
Bash

# Template file for 'retroshare'
pkgname=retroshare
version=0.6.5
revision=4
wrksrc="RetroShare-${version}"
build_style=qmake
configure_args="RS_UPNP_LIB=miniupnpc"
hostmakedepends="pkg-config qt5-qmake qt5-host-tools
qt5-tools-devel qt5-multimedia-devel qt5-x11extras-devel"
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
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
}