summaryrefslogtreecommitdiffstats
path: root/desktop
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2022-03-07 03:11:12 -0500
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2022-03-08 09:44:25 +0700
commitb32f1ef188926591da8eeb0e11e48d08a5c70e21 (patch)
treeb4f0e8e4b1beac8802179eace9eadeba9c532353 /desktop
parentcc4063da93c56dfd219371dac1833fdf32aecaa8 (diff)
downloadslackbuilds-b32f1ef188926591da8eeb0e11e48d08a5c70e21.tar.gz
slackbuilds-b32f1ef188926591da8eeb0e11e48d08a5c70e21.tar.xz
desktop/xdg-desktop-portal-gtk: Remove .la files.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop')
-rw-r--r--desktop/xdg-desktop-portal-gtk/xdg-desktop-portal-gtk.SlackBuild22
1 files changed, 9 insertions, 13 deletions
diff --git a/desktop/xdg-desktop-portal-gtk/xdg-desktop-portal-gtk.SlackBuild b/desktop/xdg-desktop-portal-gtk/xdg-desktop-portal-gtk.SlackBuild
index 9f97b560f5..0beeeb2d74 100644
--- a/desktop/xdg-desktop-portal-gtk/xdg-desktop-portal-gtk.SlackBuild
+++ b/desktop/xdg-desktop-portal-gtk/xdg-desktop-portal-gtk.SlackBuild
@@ -22,11 +22,15 @@
# 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 .la files.
+# - remove useless INSTALL and ABOUT-NLS from doc dir.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=xdg-desktop-portal-gtk
VERSION=${VERSION:-1.4.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +42,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 +76,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" \
@@ -91,15 +92,10 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
-
-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
+make install-strip DESTDIR=$PKG
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a \
- COPYING INSTALL NEWS ABOUT-NLS \
- $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a 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