diff options
author | B. Watson | 2022-04-03 19:06:21 +0200 |
---|---|---|
committer | B. Watson | 2022-04-03 19:06:21 +0200 |
commit | 465cc88ffc81e8df38715d395386cd0789f3fb7c (patch) | |
tree | 94eaf7dbfe105359b1a48b7e0dc36c695de43d42 /network | |
parent | 07280789167e62ddaa183f868a71ad349cfb8fd4 (diff) | |
download | slackbuilds-465cc88ffc81e8df38715d395386cd0789f3fb7c.tar.gz |
network/axel: Strip binary.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'network')
-rw-r--r-- | network/axel/axel.SlackBuild | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/network/axel/axel.SlackBuild b/network/axel/axel.SlackBuild index 33d1fbf6c4..a1ac8bb969 100644 --- a/network/axel/axel.SlackBuild +++ b/network/axel/axel.SlackBuild @@ -24,11 +24,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220403 bkw: Modified by SlackBuilds.org, BUILD=2: +# - strip the binary. +# - remove useless INSTALL from package doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=axel VERSION=${VERSION:-2.17.10} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -40,9 +44,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 @@ -77,9 +78,9 @@ cd $PRGNAM-$VERSION 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 \ + -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + -exec chmod 644 {} \+ ./configure \ --prefix=/usr \ @@ -88,13 +89,11 @@ find -L . \ CFLAGS="$SLKCFLAGS" \ make -make install DESTDIR=$PKG - -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 +make install-strip DESTDIR=$PKG +gzip -9 $PKG/usr/man/man*/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a CONTRIBUTING.md COPYING INSTALL NEWS README.md VERSION $PKG/usr/doc/$PRGNAM-$VERSION +cp -a CONTRIBUTING.md COPYING NEWS README.md VERSION $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |