aboutsummaryrefslogtreecommitdiff
path: root/desktop/cellwriter/cellwriter.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-03-30 14:31:03 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-04-05 15:17:51 +0700
commit1c76620df775ecadfaca4f9707aedc9b6256a9bd (patch)
tree5b4ba79c05951ce60d6eedc49aa185aef9f50202 /desktop/cellwriter/cellwriter.SlackBuild
parent281c41c2d5a2849c5b45aa96d9842846209f00f9 (diff)
desktop/cellwriter: Fix github URL, minor cleanup.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'desktop/cellwriter/cellwriter.SlackBuild')
-rw-r--r--desktop/cellwriter/cellwriter.SlackBuild17
1 files changed, 10 insertions, 7 deletions
diff --git a/desktop/cellwriter/cellwriter.SlackBuild b/desktop/cellwriter/cellwriter.SlackBuild
index 865d0d143c801..640402e611abb 100644
--- a/desktop/cellwriter/cellwriter.SlackBuild
+++ b/desktop/cellwriter/cellwriter.SlackBuild
@@ -24,12 +24,16 @@
# along with this program (most likely, a file named COPYING). If
# not, see <http://www.gnu.org/licenses/>.
+# 20240330 bkw: modified by SlackBuilds.org, BUILD=2:
+# - fix desktop-file-validate warning.
+# - remove generic INSTALL from doc dir.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=cellwriter
VERSION=${VERSION:-1.3.6}
COMMIT=${COMMIT:-b5295f46dab0a353d72368e6255b654bb1c49f0c}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -41,9 +45,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
@@ -78,9 +79,11 @@ cd $PRGNAM-$COMMIT
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 {} +
+
+sed -i '/^Encoding/d' $PRGNAM.desktop
LDFLAGS="-lX11" \
CFLAGS="$SLKCFLAGS -w -Wl,--allow-multiple-definition" \
@@ -101,7 +104,7 @@ 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 AUTHORS COPYING ChangeLog INSTALL TODO $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING ChangeLog TODO $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install