summaryrefslogtreecommitdiffstats
path: root/desktop/trayer-srg/trayer-srg.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/trayer-srg/trayer-srg.SlackBuild')
-rw-r--r--desktop/trayer-srg/trayer-srg.SlackBuild20
1 files changed, 9 insertions, 11 deletions
diff --git a/desktop/trayer-srg/trayer-srg.SlackBuild b/desktop/trayer-srg/trayer-srg.SlackBuild
index 6896dd1491..5901b2e2de 100644
--- a/desktop/trayer-srg/trayer-srg.SlackBuild
+++ b/desktop/trayer-srg/trayer-srg.SlackBuild
@@ -22,10 +22,10 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-# Now maintained by B. Watson (yalhcru@gmail.com)
+# Now maintained by B. Watson (urchlay@slackware.uk)
+# 20210907 bkw: BUILD=2, spelling/grammar fixes in docs.
# 20180612 bkw: updated for v1.1.8.
-
# 20170708 bkw:
# - updated for v1.1.7.
# - stop installing INSTALL in doc dir.
@@ -43,7 +43,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=trayer-srg
VERSION=${VERSION:-1.1.8}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -55,9 +55,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
@@ -94,12 +91,13 @@ rm -rf $TARNAM-$VERSION
tar xvf $CWD/$TARNAM-$VERSION.tar.?z*
cd $TARNAM-$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 \
- \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+
+patch -p1 < $CWD/spelling_grammar_fixes.diff
+# not a real (autotools) configure script, notice non-canonical use
+# of --prefix here!
./configure --prefix=/usr/bin
CFLAGS="$SLKCFLAGS" make # This will also strip the executable