From 2430897512084834e5472149a948490970b0f4cd Mon Sep 17 00:00:00 2001 From: Damian Perticone Date: Thu, 12 May 2022 14:45:27 +0100 Subject: development/zig: Fix libraries path. Needs to be $PKG/usr/lib/zig without $LIBDIRSUFFIX. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- development/zig/zig.SlackBuild | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'development') diff --git a/development/zig/zig.SlackBuild b/development/zig/zig.SlackBuild index fc1956441c..4d10db7b5d 100644 --- a/development/zig/zig.SlackBuild +++ b/development/zig/zig.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for zig -# Copyright 2022 Damian Perticone Berisso, Argentina +# Copyright 2022 Damian Perticone, Berisso, Argentina # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=zig VERSION=${VERSION:-0.9.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -83,13 +83,11 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -mkdir -p $PKG +install -Dm 755 zig -t $PKG/usr/bin +install -d $PKG/usr/lib/zig +cp -r lib/* $PKG/usr/lib/zig -install -Dm755 zig -t $PKG/usr/bin -install -d $PKG/usr/lib${LIBDIRSUFFIX}/zig -cp -r lib/* $PKG/usr/lib${LIBDIRSUFFIX}/zig - -find $PKG/usr/lib${LIBDIRSUFFIX}/zig -type d -exec chmod 755 {} \; +find $PKG/usr/lib/zig -type d -exec chmod 755 {} \; 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 @@ -102,4 +100,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE -- cgit v1.2.3