summaryrefslogtreecommitdiff
path: root/development/p4v/p4v.SlackBuild
diff options
context:
space:
mode:
authorDavid Sullins <david.sullins@gmail.com>2016-08-05 17:57:08 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-08-05 17:57:08 +0700
commit50c1ff3d405c72f83ff56ef402e1a48288588937 (patch)
tree86f37636afd8cfc08c6a809fca99cd9e082305b7 /development/p4v/p4v.SlackBuild
parent51470887f7bd896493a53c562bfd7841ba45a9e3 (diff)
downloadslackbuilds-50c1ff3d405c72f83ff56ef402e1a48288588937.tar.gz
development/p4v: Updated for version 2015.2.1315639.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/p4v/p4v.SlackBuild')
-rw-r--r--development/p4v/p4v.SlackBuild13
1 files changed, 12 insertions, 1 deletions
diff --git a/development/p4v/p4v.SlackBuild b/development/p4v/p4v.SlackBuild
index ef462b7cb6..ac4531dede 100644
--- a/development/p4v/p4v.SlackBuild
+++ b/development/p4v/p4v.SlackBuild
@@ -79,13 +79,24 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}
+# It would be a bad idea to copy p4v's qt.conf into /usr/bin
rm bin/qt.conf
cp -a bin $PKG/usr/bin
mv lib/p4v $PKG/usr/lib${LIBDIRSUFFIX}/p4v
+# p4vc needs to be wrapped too
+mv $PKG/usr/bin/p4vc $PKG/usr/bin/p4vc.bin
+
# Adapt the path for lib/lib64
sed -i "s%prefix/lib/%prefix/lib${LIBDIRSUFFIX}/%g" $PKG/usr/bin/$PRGNAM
-sed -i "s%prefix/lib/%prefix/lib${LIBDIRSUFFIX}/%g" $PKG/usr/bin/p4merge
+
+# Add Qt plugin path through environment variable since we can't use qt.conf
+sed -i "s%export P4VRES%export P4VRES QT_PLUGIN_PATH=\$QT5DIR/plugins%g" $PKG/usr/bin/$PRGNAM
+
+# Copy to the other wrappers
+cp $PKG/usr/bin/$PRGNAM $PKG/usr/bin/p4merge
+cp $PKG/usr/bin/$PRGNAM $PKG/usr/bin/p4admin
+cp $PKG/usr/bin/$PRGNAM $PKG/usr/bin/p4vc
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