aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-04-05 01:08:55 -0400
committerB. Watson <yalhcru@gmail.com>2022-04-05 01:08:55 -0400
commit7b066a857d3b57db1b57c6344bff04a5ca60f50f (patch)
treea5ce2d72df6cc8b89cd3636919173874283df675
parent5a47dea4e07578c0ef8b272ab7dfd391cdb4d674 (diff)
ham/libax25: Strip libraries.
Signed-off-by: B. Watson <yalhcru@gmail.com>
-rw-r--r--ham/libax25/libax25.SlackBuild13
1 files changed, 7 insertions, 6 deletions
diff --git a/ham/libax25/libax25.SlackBuild b/ham/libax25/libax25.SlackBuild
index 480a7c8dd6fcb..c3bd5704dbef3 100644
--- a/ham/libax25/libax25.SlackBuild
+++ b/ham/libax25/libax25.SlackBuild
@@ -22,12 +22,14 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20220404 bkw: Modified by SlackBuilds.org, BUILD=3: strip libraries.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=libax25
VERSION=${VERSION:-0.0.12_rc5}
SRCVER=$(echo $VERSION | tr _ -)
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -39,9 +41,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -76,9 +75,9 @@ cd $PRGNAM-$SRCVER
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 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -95,6 +94,8 @@ make
make install DESTDIR=$PKG
make installconf DESTDIR=$PKG
+strip $PKG/usr/lib*/lib*.so.*.*.*
+
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done