aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 fc1956441cd8..4d10db7b5d18 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