aboutsummaryrefslogtreecommitdiff
path: root/network/smstools3/smstools3.SlackBuild
diff options
context:
space:
mode:
authorDave Woodfall <dave@slackbuilds.org>2021-04-20 23:11:20 +0000
committerRobby Workman <rworkman@slackbuilds.org>2021-04-21 21:19:51 -0500
commitf03a9d4f3e2f4128ce802dcce0099e45a372c20a (patch)
tree3851af29cae4a9117ff114b06a0dcd6d0ab3d654 /network/smstools3/smstools3.SlackBuild
parent2dbadf5943b8f7f0f5ee0e7dc8392ec042a86a7a (diff)
network/smstools3: Add L(D)FLAGS, DESTDIR patch.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Diffstat (limited to 'network/smstools3/smstools3.SlackBuild')
-rw-r--r--network/smstools3/smstools3.SlackBuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/network/smstools3/smstools3.SlackBuild b/network/smstools3/smstools3.SlackBuild
index 2564390f94990..6743447103d08 100644
--- a/network/smstools3/smstools3.SlackBuild
+++ b/network/smstools3/smstools3.SlackBuild
@@ -68,9 +68,13 @@ 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 {} \;
-patch --verbose -p1 < $CWD/fixups2.diff
+patch --verbose -p1 <$CWD/destdir.patch
-DESTDIR=$PKG make install
+LFLAGS="-z muldefs" \
+CFLAGS="$SLKCFLAGS" \
+DESTDIR=$PKG \
+BINDIR=$PKG/usr/bin \
+ make install
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true