diff options
author | B. Watson <yalhcru@gmail.com> | 2022-03-07 03:40:38 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-03-08 09:44:25 +0700 |
commit | 4b618c9739c731009ee4202d7d093ffadb63c8ae (patch) | |
tree | ac2599c1e1a6431127450f44f661ec0cfe30ca22 | |
parent | b32f1ef188926591da8eeb0e11e48d08a5c70e21 (diff) |
desktop/flatpak: Remove useless docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | desktop/flatpak/flatpak.SlackBuild | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/desktop/flatpak/flatpak.SlackBuild b/desktop/flatpak/flatpak.SlackBuild index 634ff59b4d5aa..f3a959439be8b 100644 --- a/desktop/flatpak/flatpak.SlackBuild +++ b/desktop/flatpak/flatpak.SlackBuild @@ -22,6 +22,9 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220307 bkw: Modified by SlackBuilds.org, BUILD=2: +# - remove useless INSTALL and ABOUT-NLS from doc dir. + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=flatpak @@ -38,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 @@ -75,9 +75,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 {} \+ CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ @@ -92,23 +92,17 @@ CXXFLAGS="$SLKCFLAGS" \ --with-system-bubblewrap make -make install DESTDIR=$PKG +make install-strip DESTDIR=$PKG + +gzip -9 $PKG/usr/man/man*/* # Don't ship .la files: rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la chmod +x $PKG/etc/profile.d/flatpak.sh -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 - -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 - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a \ - README.md COPYING INSTALL NEWS ABOUT-NLS \ - $PKG/usr/doc/$PRGNAM-$VERSION +cp -a README.md COPYING NEWS $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/README > $PKG/usr/doc/$PRGNAM-$VERSION/README.SBo cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |