summaryrefslogtreecommitdiff
path: root/graphics/flpsed
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2020-11-02 12:12:39 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-11-07 14:02:30 +0700
commit838867d3568cad691f1a1881328a7daac4d31e71 (patch)
treede66882ac4df01edcfd4b4c561dbed6f9924a0f3 /graphics/flpsed
parent17fb182ba7629e6775572faf28d30e9c8e0ef53c (diff)
downloadslackbuilds-838867d3568cad691f1a1881328a7daac4d31e71.tar.gz
graphics/flpsed: Fix URLs, include icons.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/flpsed')
-rw-r--r--graphics/flpsed/README14
-rw-r--r--graphics/flpsed/flpsed.SlackBuild27
-rw-r--r--graphics/flpsed/flpsed.info4
-rw-r--r--graphics/flpsed/slack-desc6
4 files changed, 31 insertions, 20 deletions
diff --git a/graphics/flpsed/README b/graphics/flpsed/README
index f74832118f..78805bb4a5 100644
--- a/graphics/flpsed/README
+++ b/graphics/flpsed/README
@@ -1,6 +1,8 @@
-flpsed is a WYSIWYG PostScript annotator. You can't remove or modify
-existing elements of a document, but flpsed lets you add arbitrary
-text lines to existing PostScript documents. Added lines can later
-be reedited with flpsed. Using pdftops, which is part of xpdf, one
-can convert PDF documents to PostScript and also add text to them.
-flpsed is useful for filling in forms, adding notes, etcetera.
+flpsed (WYSIWYG PostScript annotator)
+
+flpsed is a WYSIWYG PostScript annotator. You can't remove or modify
+existing elements of a document, but flpsed lets you add arbitrary
+text lines to existing PostScript documents. Added lines can later
+be reedited with flpsed. Using pdftops, which is part of xpdf, one
+can convert PDF documents to PostScript and also add text to them.
+flpsed is useful for filling in forms, adding notes, et cetera.
diff --git a/graphics/flpsed/flpsed.SlackBuild b/graphics/flpsed/flpsed.SlackBuild
index 29e74628b0..80b9bea7a3 100644
--- a/graphics/flpsed/flpsed.SlackBuild
+++ b/graphics/flpsed/flpsed.SlackBuild
@@ -1,14 +1,19 @@
#!/bin/sh
# Slackware build script for flpsed
-# Originally written by Jack Maddox <jackmaddox@gmail.com>
+# Originally written by Jack Maddox <email removed>
# Currently maintained by B. Watson <yalhcru@gmail.com>
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20201102 bkw: BUILD=2
+# - Include icons in the package
+# - Get rid of INSTALL in doc dir
+# - Homepage went away, use Fedora download and archive.org homepage.
+
PRGNAM=flpsed
VERSION=${VERSION:-0.7.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -47,11 +52,8 @@ rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
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 \
- \( -perm 666 -o -perm 664 -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 {} \+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -69,11 +71,18 @@ make install-strip DESTDIR=$PKG
gzip -9 $PKG/usr/man/man1/$PRGNAM.1
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a README INSTALL COPYING AUTHORS NEWS $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README COPYING AUTHORS NEWS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# upstream ships icons but doesn't 'make install' them.
+mkdir -p $PKG/usr/share/pixmaps $PKG/usr/share/icons/hicolor/scalable/apps/
+cat $PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
+gzip -9c < $PRGNAM.svg > $PKG/usr/share/icons/hicolor/scalable/apps/$PRGNAM.svgz
+
mkdir -p $PKG/usr/share/applications
-cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+sed "/^Icon=\$/s,\$,$PRGNAM," \
+ $CWD/$PRGNAM.desktop > \
+ $PKG/usr/share/applications/$PRGNAM.desktop
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/graphics/flpsed/flpsed.info b/graphics/flpsed/flpsed.info
index 63a4e36d36..05c17f7f47 100644
--- a/graphics/flpsed/flpsed.info
+++ b/graphics/flpsed/flpsed.info
@@ -1,7 +1,7 @@
PRGNAM="flpsed"
VERSION="0.7.3"
-HOMEPAGE="http://flpsed.org/flpsed.html"
-DOWNLOAD="http://flpsed.org/flpsed-0.7.3.tar.gz"
+HOMEPAGE="http://web.archive.org/web/20201018005250/https://flpsed.org/flpsed.html"
+DOWNLOAD="https://src.fedoraproject.org/repo/pkgs/flpsed/flpsed-0.7.3.tar.gz/3b7c2ffd349a41c2e484dad3fd3d73d0/flpsed-0.7.3.tar.gz"
MD5SUM="3b7c2ffd349a41c2e484dad3fd3d73d0"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
diff --git a/graphics/flpsed/slack-desc b/graphics/flpsed/slack-desc
index f51e89dcb6..5600ed01e4 100644
--- a/graphics/flpsed/slack-desc
+++ b/graphics/flpsed/slack-desc
@@ -8,10 +8,10 @@
|-----handy-ruler------------------------------------------------------|
flpsed: flpsed (WYSIWYG PostScript annotator)
flpsed:
-flpsed: flpsed is a WYSIWYG PostScript annotator. You can't remove or modify
+flpsed: flpsed is a WYSIWYG PostScript annotator. You can't remove or modify
flpsed: existing elements of a document, but flpsed lets you add arbitrary
-flpsed: text lines to existing PostScript documents. Added lines can later
-flpsed: be reedited with flpsed. Using pdftops, which is part of xpdf, one
+flpsed: text lines to existing PostScript documents. Added lines can later
+flpsed: be reedited with flpsed. Using pdftops, which is part of xpdf, one
flpsed: can convert PDF documents to PostScript and also add text to them.
flpsed: flpsed is useful for filling in forms, adding notes, etcetera.
flpsed: