diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2024-05-07 17:40:25 +0200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-05-11 06:51:52 +0700 |
commit | 29e11f50c6b9a9f5f7e30205c86e12e85c884b28 (patch) | |
tree | 2b6f5b4b5072405d3ca8b5b2d3730aae9a28f018 /development | |
parent | a99270b8b8476f0009058c0e73b5a16194a5b697 (diff) |
development/gtest: Rework libraries installation.
Copy also missing cmake files
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development')
-rw-r--r-- | development/gtest/gtest.SlackBuild | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/development/gtest/gtest.SlackBuild b/development/gtest/gtest.SlackBuild index 867de2d6e992..8de2381c4b19 100644 --- a/development/gtest/gtest.SlackBuild +++ b/development/gtest/gtest.SlackBuild @@ -34,7 +34,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=gtest SRCNAM=googletest VERSION=${VERSION:-1.12.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -111,13 +111,20 @@ install -m 0644 googletest/include/$PRGNAM/internal/custom/*.h \ $PKG/usr/include/$PRGNAM/internal/custom # install the libs and the pkgconfig files! -install -s -m 0755 build/lib/*.so $PKG/usr/lib$LIBDIRSUFFIX +for i in build/lib/*.so ; do + install -s -m 0755 $i $PKG/usr/lib$LIBDIRSUFFIX/$(basename $i .so).so.$VERSION + ln -s $(basename $i .so).so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/$(basename $i .so).so +done mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig for i in gmock gmock_main gtest gtest_main ; do sed "s| -lpthread||g" build/googletest/generated/${i}.pc \ > $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/${i}.pc done +# copy the cmake filesa +cp -a build/googletest/CMakeFiles/Export/lib$LIBDIRSUFFIX/cmake $PKG/usr/lib$LIBDIRSUFFIX/ +install -m 0644 build/googletest/generated/*.cmake $PKG/usr/lib$LIBDIRSUFFIX/cmake/GTest + mkdir -p $PKG/usr/src cp -R googlemock $PKG/usr/src cp -R googletest $PKG/usr/src |