aboutsummaryrefslogtreecommitdiff
path: root/development/zig
diff options
context:
space:
mode:
authorDamian Perticone <mjolnirdam@gmail.com>2022-05-12 14:45:27 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-05-14 19:27:58 +0700
commit2430897512084834e5472149a948490970b0f4cd (patch)
tree4dbf9606fb1d745e19e0acf18bb23342082a0eda /development/zig
parent81a37ba9c738da4541ebac71b1042576cd82713c (diff)
development/zig: Fix libraries path.
Needs to be $PKG/usr/lib/zig without $LIBDIRSUFFIX. Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/zig')
-rw-r--r--development/zig/zig.SlackBuild16
1 files changed, 7 insertions, 9 deletions
diff --git a/development/zig/zig.SlackBuild b/development/zig/zig.SlackBuild
index fc1956441cd89..4d10db7b5d183 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