diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-22 12:19:02 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-04-22 12:19:02 -0400 |
commit | 295d56969dd1a5829218f70799c964487cabc69c (patch) | |
tree | c7bc14fea67280609111a998eed7d106b6815749 /libraries/HawkNL | |
parent | 9bc01179fbaba757277f1343f8c04a3d7ea5e3da (diff) |
libraries/HawkNL: Fix symlinks, rm static lib.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'libraries/HawkNL')
-rw-r--r-- | libraries/HawkNL/HawkNL.SlackBuild | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/libraries/HawkNL/HawkNL.SlackBuild b/libraries/HawkNL/HawkNL.SlackBuild index 2549a7381076..efd66fa8e184 100644 --- a/libraries/HawkNL/HawkNL.SlackBuild +++ b/libraries/HawkNL/HawkNL.SlackBuild @@ -22,12 +22,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220422 bkw: Modified by SlackBuilds.org, BUILD=2: +# - fix broken symlinks in lib dir that were pointing to the build dir. +# - remove static lib. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=HawkNL VERSION=${VERSION:-1.68} SRCVER=168src -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -39,9 +43,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 @@ -76,26 +77,22 @@ cd $PRGNAM$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 {} \+ cd src make -f makefile.linux - install -D -m755 libNL.so.1.6.8 $PKG/usr/lib${LIBDIRSUFFIX}/libNL.so.1.6.8 - install -D -m755 libNL.a $PKG/usr/lib${LIBDIRSUFFIX}/libNL.a - ln -sf $PKG/usr/lib${LIBDIRSUFFIX}/libNL.so.1.6.8 $PKG/usr/lib${LIBDIRSUFFIX}/libNL.so.1.6 - ln -sf $PKG/usr/lib${LIBDIRSUFFIX}/libNL.so.1.6.8 $PKG/usr/lib${LIBDIRSUFFIX}/libNL.so.1 - ln -sf $PKG/usr/lib${LIBDIRSUFFIX}/libNL.so.1.6.8 $PKG/usr/lib${LIBDIRSUFFIX}/libNL.so - ln -sf $PKG/usr/lib${LIBDIRSUFFIX}/libNL.so.1.6.8 $PKG/usr/lib${LIBDIRSUFFIX}/NL.so + install -s -D -m755 libNL.so.1.6.8 $PKG/usr/lib${LIBDIRSUFFIX}/libNL.so.1.6.8 + + for i in libNL.so.1.6 libNL.so.1 libNL.so NL.so; do + ln -s libNL.so.1.6.8 $PKG/usr/lib${LIBDIRSUFFIX}/$i + done cd .. mkdir -p $PKG/usr/include install -D -m644 include/nl.h $PKG/usr/include/nl.h -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 - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a src/*.txt $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |