summaryrefslogtreecommitdiff
path: root/development
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2018-04-16 21:33:14 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2018-04-21 07:43:08 +0700
commit161210049a935cedfd1fb7fc660f1b1dd64771c7 (patch)
tree3b5eac52f5e9eab0c321b2ac2e5d0a081b056d41 /development
parenta567d7773a42a8ece15bdd2054278389d52b4801 (diff)
downloadslackbuilds-161210049a935cedfd1fb7fc660f1b1dd64771c7.tar.gz
development/gtest: Update script.
Signed-off-by: Dimitris Zlatanidis <d.zlatanidis@gmail.com>
Diffstat (limited to 'development')
-rw-r--r--development/gtest/gtest.SlackBuild14
1 files changed, 11 insertions, 3 deletions
diff --git a/development/gtest/gtest.SlackBuild b/development/gtest/gtest.SlackBuild
index a47504dc5b..a90c02d5ab 100644
--- a/development/gtest/gtest.SlackBuild
+++ b/development/gtest/gtest.SlackBuild
@@ -27,7 +27,7 @@
PRGNAM=gtest
SRCNAM=googletest
VERSION=${VERSION:-1.8.0}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -90,12 +90,20 @@ mkdir -p $PKG/usr/lib$LIBDIRSUFFIX $PKG/usr/include/$PRGNAM/internal/custom \
install -m 0644 build/googlemock/*.so $PKG/usr/lib$LIBDIRSUFFIX
install -m 0644 googlemock/include/gmock/*.h $PKG/usr/include/gmock
install -m 0644 googlemock/include/gmock/internal/*.h $PKG/usr/include/gmock/internal/
-install -m 0644 googlemock/include/gmock/internal/custom/*.h $PKG/usr/include/gmock/internal/custom
+install -m 0644 googlemock/include/gmock/internal/custom/*.h \
+ $PKG/usr/include/gmock/internal/custom
install -m 0644 build/googlemock/$PRGNAM/*.so $PKG/usr/lib$LIBDIRSUFFIX
install -m 0644 googletest/include/$PRGNAM/*.h $PKG/usr/include/$PRGNAM/
install -m 0644 googletest/include/$PRGNAM/internal/*.h $PKG/usr/include/$PRGNAM/internal/
-install -m 0644 googletest/include/$PRGNAM/internal/custom/*.h $PKG/usr/include/$PRGNAM/internal/custom
+install -m 0644 googletest/include/$PRGNAM/internal/custom/*.h \
+ $PKG/usr/include/$PRGNAM/internal/custom
+
+mkdir -p $PKG/usr/src
+cp -R googlemock $PKG/usr/src
+cp -R googletest /$PKG/usr/src
+# Create symlinks as some programs look for the shorter names
+(cd $PKG/usr/src ; ln -svf googlemock gmock ; ln -svf googletest gtest)
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