summaryrefslogtreecommitdiffstats
path: root/network/retroshare/retroshare.SlackBuild
diff options
context:
space:
mode:
author Alan Aversa2017-01-14 13:02:16 +0100
committer Willy Sudiarto Raharjo2017-01-14 13:04:05 +0100
commitc8aa17bc8867abba871a3d0a757bd95d2bbe5b8d (patch)
tree7214489ab0cd9c4f2d9db7d3c98192e68e31e94a /network/retroshare/retroshare.SlackBuild
parent6e55b9f408b3ac0b874fff7e3999868a9be502d7 (diff)
downloadslackbuilds-c8aa17bc8867abba871a3d0a757bd95d2bbe5b8d.tar.gz
network/retroshare: Updated for version 0.6.1 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/retroshare/retroshare.SlackBuild')
-rw-r--r--network/retroshare/retroshare.SlackBuild21
1 files changed, 6 insertions, 15 deletions
diff --git a/network/retroshare/retroshare.SlackBuild b/network/retroshare/retroshare.SlackBuild
index 1e0cf2570c..32cfbef310 100644
--- a/network/retroshare/retroshare.SlackBuild
+++ b/network/retroshare/retroshare.SlackBuild
@@ -18,9 +18,8 @@
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
PKGNAM=retroshare
-VERSION=${VERSION:-0.6.0}
+VERSION=${VERSION:-0.6.1}
BUILD=${BUILD:-1}
-RC=RC2 # RC of the retroshare VERSION, if release, make it clean
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -50,11 +49,10 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PKGNAM-$VERSION
-tar xvf $CWD/v$VERSION-RC2.tar.gz
-cd RetroShare-$VERSION-RC2
+tar xvf $CWD/$VERSION.tar.gz
+cd RetroShare-$VERSION
# delete all plugins
rm -rf plugins
-cat $CWD/RetroShare.pro.patch | patch -p0
chown -R root:root .
find -L . \
@@ -63,16 +61,9 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-qmake CONFIG+=retroshare-gui && make clean && make
-
-install -D -m 755 retroshare-gui/src/RetroShare $PKG/usr/bin/RetroShare
-install -D -m 755 retroshare-nogui/src/retroshare-nogui $PKG/usr/bin/$PKGNAM-nogui
-
-install -D -m 644 build_scripts/Debian+Ubuntu/data/retroshare.desktop $PKG/usr/share/applications/$PKGNAM.desktop
-install -D -m 644 build_scripts/Debian+Ubuntu/data/retroshare.png $PKG/usr/share/pixmaps/$PKGNAM.png
-install -D -m 644 build_scripts/Debian+Ubuntu/data/retroshare.xpm $PKG/usr/share/pixmaps/$PKGNAM.xpm
-install -D -m 644 libbitdht/src/bitdht/bdboot.txt $PKG/usr/share/RetroShare/bdboot.txt
-cp -R retroshare-gui/src/qss $PKG/usr/share/RetroShare
+qmake PREFIX=/usr LIB_DIR=/usr/lib${LIBDIRSUFFIX} "CONFIG-=debug" "CONFIG+=release"
+make
+make INSTALL_ROOT=${PKG} install
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true