academic/Gblocks: update Copyright year + misc cleanups

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Petar Petrov 2021-05-18 15:17:02 +03:00 committed by Willy Sudiarto Raharjo
parent 325cef8761
commit 99dda03f3c
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
1 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@
# Slackware build script for Gblocks
# Copyright 2011-2016 Petar Petrov slackalaxy@gmail.com
# Copyright 2011-2021 Petar Petrov slackalaxy@gmail.com
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,7 +24,7 @@
PRGNAM=Gblocks
VERSION=${VERSION:-0.91b}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -65,15 +65,15 @@ tar xvf $CWD/$TARNAME.tar.Z
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 \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-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 {} \;
install -D -m755 Gblocks $PKG/usr/bin/$PRGNAM
mkdir -p $PKG/usr/share/$PRGNAM
cp -a more_alignments/* $PKG/usr/share/$PRGNAM
cp -a more_alignments nad3.pir paths $PKG/usr/share/$PRGNAM
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