summaryrefslogtreecommitdiffstats
path: root/libraries/libtar/libtar.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libtar/libtar.SlackBuild')
-rw-r--r--libraries/libtar/libtar.SlackBuild10
1 files changed, 7 insertions, 3 deletions
diff --git a/libraries/libtar/libtar.SlackBuild b/libraries/libtar/libtar.SlackBuild
index 818e7a46b3..14f40134f7 100644
--- a/libraries/libtar/libtar.SlackBuild
+++ b/libraries/libtar/libtar.SlackBuild
@@ -28,13 +28,15 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. FURTHERMORE I AM NOT LIABLE IF
# YOUR DATA IS DESTROYED, YOUR HOUSE BURNS DOWN OR YOUR DOG RUNS OFF.
+# 20230630 bkw: Modified by SlackBuilds.org, BUILD=3:
+# - install shared lib with +x permission.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libtar
VERSION=${VERSION:-1.2.20}
SRCVERSION=${SRCVERSION:-0907a90}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -83,9 +85,9 @@ cd $PRGNAM-$SRCVERSION
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 {} +
autoreconf -vif
CFLAGS="$SLKCFLAGS" \
@@ -102,6 +104,8 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
+chmod +x $PKG/usr/lib*/lib*.so.*
+
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