summaryrefslogtreecommitdiffstats
path: root/libraries/libxnvctrl/libxnvctrl.SlackBuild
diff options
context:
space:
mode:
author B. Watson2022-04-21 18:08:54 +0200
committer B. Watson2022-04-21 18:08:54 +0200
commit3fb4803bb266dd24e3ac253b69db5d7b6cf92038 (patch)
tree693d27965c729b65f7d39d9bd0994f7d45ded8d2 /libraries/libxnvctrl/libxnvctrl.SlackBuild
parent403812a184b51d11a377ac41503e323b422b6a94 (diff)
downloadslackbuilds-3fb4803bb266dd24e3ac253b69db5d7b6cf92038.tar.gz
libraries/libxnvctrl: Strip shared libary.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/libxnvctrl/libxnvctrl.SlackBuild')
-rw-r--r--libraries/libxnvctrl/libxnvctrl.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/libraries/libxnvctrl/libxnvctrl.SlackBuild b/libraries/libxnvctrl/libxnvctrl.SlackBuild
index b46e637132..10fe54976e 100644
--- a/libraries/libxnvctrl/libxnvctrl.SlackBuild
+++ b/libraries/libxnvctrl/libxnvctrl.SlackBuild
@@ -22,11 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220421 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - strip shared library.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libxnvctrl
VERSION=${VERSION:-510.60.02}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +41,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -75,9 +75,9 @@ cd nvidia-settings-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
- -o -perm 511 \) -exec chmod 755 {} \; -o \
+ -o -perm 511 \) -exec chmod 755 {} \+ -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
#patch source to build static and shared library
patch -p0 < $CWD/libxnvctrl_so.patch
@@ -90,7 +90,7 @@ make
#install shared and static libraries and headers
install -Dm 644 *.h -t $PKG/usr/include/NVCtrl
install -Dm 644 _out/*/libXNVCtrl.a -t $PKG/usr/lib$LIBDIRSUFFIX
-install -Dm 755 _out/*/libXNVCtrl.so.0.0.0 -t $PKG/usr/lib$LIBDIRSUFFIX
+install -s -Dm 755 _out/*/libXNVCtrl.so.0.0.0 -t $PKG/usr/lib$LIBDIRSUFFIX
ln -s libXNVCtrl.so.0.0.0 $PKG/usr/lib$LIBDIRSUFFIX/libXNVCtrl.so.0
ln -s libXNVCtrl.so.0 $PKG/usr/lib$LIBDIRSUFFIX/libXNVCtrl.so