summaryrefslogtreecommitdiffstats
path: root/source/xfce/mousepad/mousepad.SlackBuild
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2021-10-12 19:22:20 +0000
committer Eric Hameleers <alien@slackware.com>2021-10-13 08:59:43 +0200
commit3e4907157f8f424eb08e8f8c53cd9250f85f6a53 (patch)
treef7f8c877c1cd577e8c24847de240b88384ae2a88 /source/xfce/mousepad/mousepad.SlackBuild
parent6e28b639e2663f0309e7c87b030f5f216fa193db (diff)
downloadcurrent-3e4907157f8f424eb08e8f8c53cd9250f85f6a53.tar.gz
current-3e4907157f8f424eb08e8f8c53cd9250f85f6a53.tar.xz
Tue Oct 12 19:22:20 UTC 202120211012192220
a/kernel-firmware-20211012_b563148-noarch-1.txz: Upgraded. a/mkinitrd-1.4.11-x86_64-26.txz: Rebuilt. Don't include 40-usb_modeswitch.rules on the initrd. Thanks to LuckyCyborg. d/scons-4.2.0-x86_64-1.txz: Upgraded. l/python-charset-normalizer-2.0.7-x86_64-1.txz: Upgraded. xfce/mousepad-0.5.7-x86_64-2.txz: Rebuilt. Added plugins directory. Thanks to Roman Dyaba.
Diffstat (limited to 'source/xfce/mousepad/mousepad.SlackBuild')
-rwxr-xr-xsource/xfce/mousepad/mousepad.SlackBuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/xfce/mousepad/mousepad.SlackBuild b/source/xfce/mousepad/mousepad.SlackBuild
index a2dd7f3ac..fafca18f2 100755
--- a/source/xfce/mousepad/mousepad.SlackBuild
+++ b/source/xfce/mousepad/mousepad.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Copyright 2020 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2020, 2021 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=mousepad
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -100,13 +100,18 @@ CXXFLAGS="$SLKCFLAGS" \
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1
+# Create plugins directory:
+if [ ! -d $PKG/usr/lib${LIBDIRSUFFIX}/mousepad/plugins ]; then
+ mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/mousepad/plugins
+fi
+
# Don't ship .la files:
rm -f $PKG/{,usr/}lib${LIBDIRSUFFIX}/*.la
# Strip binaries:
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
-# Compress man pages
+# Compress man pages:
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