diff options
Diffstat (limited to 'network/librewolf/librewolf.SlackBuild')
-rw-r--r-- | network/librewolf/librewolf.SlackBuild | 75 |
1 files changed, 44 insertions, 31 deletions
diff --git a/network/librewolf/librewolf.SlackBuild b/network/librewolf/librewolf.SlackBuild index 48c10fe05f..cb388c3305 100644 --- a/network/librewolf/librewolf.SlackBuild +++ b/network/librewolf/librewolf.SlackBuild @@ -2,7 +2,8 @@ # Slackware build script for librewolf -# Copyright 2022-2023 Ivan Kovmir <i@kovmir.eu> +# Copyright 2025 Antonio Leal <antonioleal@yahoo.com> +# Copyright 2022-2024 Ivan Kovmir <i@kovmir.eu> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,7 +26,7 @@ cd "$(dirname "$0")" ; CWD=$(pwd) PRGNAM=librewolf -VERSION=${VERSION:-136.0} +VERSION=${VERSION:-142.0_1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -45,34 +46,46 @@ TMP="${TMP:-/tmp/SBo}" PKG="$TMP/package-$PRGNAM" OUTPUT="${OUTPUT:-/tmp}" -APPIMGNAM="LibreWolf.$ARCH.AppImage" -NAMVER="$PRGNAM-$VERSION" - set -e -rm -rf "$PKG" -mkdir -p "$TMP" "$PKG" "$OUTPUT" -mkdir -p "$PKG/install" -mkdir -p "$PKG/usr/doc/$NAMVER" -mkdir -p "$PKG/usr/share/applications" -mkdir -p "$PKG/usr/bin" -mkdir -p "$PKG/opt" -chmod 0755 "$CWD/$APPIMGNAM" -cd "$PKG/opt" -"$CWD/$APPIMGNAM" --appimage-extract -mv squashfs-root "$NAMVER" - -# Remove empty file. -rm -f "$PKG/opt/$NAMVER/removed-files" - -# Executable and *.desktop file. -ln -s "../../opt/$NAMVER/AppRun" "$PKG/usr/bin/$PRGNAM" -ln -s "../../../opt/$NAMVER/io.gitlab.LibreWolf.desktop" "$PKG/usr/share/applications/$PRGNAM.desktop" - -cp "$CWD/$PRGNAM.SlackBuild" "$PKG/usr/doc/$NAMVER/$PRGNAM.SlackBuild" -cp "$CWD/README" "$PKG/usr/doc/$NAMVER/README" -cp "$CWD/slack-desc" "$PKG/install/slack-desc" -cp "$CWD/doinst.sh" "$PKG/install/doinst.sh" - -cd "$PKG" -/sbin/makepkg -l y -c n "$OUTPUT/$NAMVER-$ARCH-$BUILD$TAG.$PKGTYPE" +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf ${PRGNAM} + +tar xvf ${CWD}/${PRGNAM}-${VERSION/_/-}-linux-x86_64-package.tar.xz +cd ${PRGNAM} +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 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +cd .. +mkdir -p $PKG/opt/ +mv ${PRGNAM} $PKG/opt/ + +mkdir -p $PKG/usr/bin $PKG/usr/share/applications $PKG/usr/share/pixmaps +( cd $PKG/usr/bin ; rm -rf librewolf ) +( cd $PKG/usr/bin ; ln -sf ../../opt/librewolf/librewolf librewolf ) +cp $CWD/librewolf.png $PKG/usr/share/pixmaps/librewolf.png +for i in 16 32 48 64 128; do +install -Dvm644 $PKG/opt/librewolf/browser/chrome/icons/default/default$i.png \ + "$PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png" +done +cp $CWD/librewolf.desktop $PKG/usr/share/applications + +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 + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE + |