aboutsummaryrefslogtreecommitdiff
path: root/libraries/libxnvctrl/libxnvctrl.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libxnvctrl/libxnvctrl.SlackBuild')
-rw-r--r--libraries/libxnvctrl/libxnvctrl.SlackBuild16
1 files changed, 7 insertions, 9 deletions
diff --git a/libraries/libxnvctrl/libxnvctrl.SlackBuild b/libraries/libxnvctrl/libxnvctrl.SlackBuild
index 4a31d82c9d019..20319a4f62a8e 100644
--- a/libraries/libxnvctrl/libxnvctrl.SlackBuild
+++ b/libraries/libxnvctrl/libxnvctrl.SlackBuild
@@ -28,8 +28,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libxnvctrl
-VERSION=${VERSION:-520.56.06}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-525.60.11}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -80,19 +80,17 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
#patch source to build static and shared library
-patch -p0 < $CWD/libxnvctrl_so.patch
+patch -p1 < $CWD/libxnvctrl_so.patch
-cd src/libXNVCtrl
+#cd src/libXNVCtrl
make clean
CFLAGS="$SLKCFLAGS" \
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 -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
+mkdir -p $PKG/usr/lib$LIBDIRSUFFIX
+install -Dm 644 src/libXNVCtrl/*.h -t $PKG/usr/include/NVCtrl
+cp -Pr src/_out/*/libXNVCtrl.* -t $PKG/usr/lib$LIBDIRSUFFIX
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild