Skip to content

Commit

Permalink
retroshare: build against miniupnpc
Browse files Browse the repository at this point in the history
  • Loading branch information
ahesford authored and Yassine Labidi committed Jan 13, 2021
1 parent 17d7041 commit 6cce2d4
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions srcpkgs/retroshare/template
@@ -1,12 +1,14 @@
# Template file for 'retroshare'
pkgname=retroshare
version=0.6.5
revision=3
revision=4
wrksrc="RetroShare-${version}"
build_style=qmake
hostmakedepends="pkg-config qt5-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 libupnp-devel libXScrnSaver-devel libxslt-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"
Expand All @@ -16,5 +18,13 @@ homepage="https://retroshare.cc"
distfiles="https://github.com/RetroShare/RetroShare/archive/v${version}.tar.gz"
checksum=901a1d1f282e04118fbe0e24190355b4a8f355a806cc5448738b1d691b46f5d5

nocross="https://travis-ci.org/voidlinux/void-packages/jobs/375096223#L1160
https://travis-ci.org/voidlinux/void-packages/jobs/375096224#L1668"
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
}

0 comments on commit 6cce2d4

Please sign in to comment.