mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
libraries/HawkNL: Fix symlinks, rm static lib.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
9bc01179fb
commit
295d56969d
1 changed files with 12 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue