diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-13 11:47:04 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-16 12:11:24 +0700 |
commit | 47aa7ee5aca219b89c4347b8ac974d5e24f989ec (patch) | |
tree | c73ff5dc35a422b0975f533ee691c4de531e1e3a /system/libratbag | |
parent | c567552b3937ba29392f9e3cdf9fb6f0bdaa5487 (diff) |
system/libratbag: Strip binaries.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/libratbag')
-rw-r--r-- | system/libratbag/libratbag.SlackBuild | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/system/libratbag/libratbag.SlackBuild b/system/libratbag/libratbag.SlackBuild index 639f4c8e72055..0c9f1cb9bd5a5 100644 --- a/system/libratbag/libratbag.SlackBuild +++ b/system/libratbag/libratbag.SlackBuild @@ -22,11 +22,13 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220413 bkw: Modified by SlackBuilds.org, BUILD=2: strip binaries. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=libratbag VERSION=${VERSION:-0.16} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +40,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 @@ -75,9 +74,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 \ + -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 {} \+ # If Sphinx and sphinx-rtd-theme are installed, then build HTML documentation if (python3 -c 'import sphinx' 2>/dev/null) && \ @@ -107,14 +106,13 @@ cd build -Dlogind-provider=elogind \ -Ddocumentation=$DOCS \ -Dtests=$ENABLE_TESTS \ - -Ddocdir=/usr/doc/$PRGNAM-$VERSION + -Ddocdir=/usr/doc/$PRGNAM-$VERSION \ + -Dstrip=true "${NINJA:=ninja}" DESTDIR=$PKG $NINJA install cd .. -# Compress man files -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 +gzip -9 $PKG/usr/man/man*/* mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION |