aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/libratbag/libratbag.SlackBuild18
1 files changed, 8 insertions, 10 deletions
diff --git a/system/libratbag/libratbag.SlackBuild b/system/libratbag/libratbag.SlackBuild
index 639f4c8e7205..0c9f1cb9bd5a 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