diff options
author | B. Watson <yalhcru@gmail.com> | 2022-03-31 14:47:01 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-02 18:18:48 +0700 |
commit | 1e5aead2fbf8c83f8d115acfb12112c49175b648 (patch) | |
tree | d3ed940be319e40d6104d411127579b5bd6d6723 /graphics/LDView | |
parent | 03394f9f699f6ba8206fc0bdebbcee0ba8fd5cf1 (diff) |
graphics/LDView: Fix .desktop, doinst.sh.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'graphics/LDView')
-rw-r--r-- | graphics/LDView/LDView.SlackBuild | 5 | ||||
-rw-r--r-- | graphics/LDView/doinst.sh | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/graphics/LDView/LDView.SlackBuild b/graphics/LDView/LDView.SlackBuild index c992e5c1ffd6c..ca221ae52c8a0 100644 --- a/graphics/LDView/LDView.SlackBuild +++ b/graphics/LDView/LDView.SlackBuild @@ -24,13 +24,14 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220331 bkw: Modified by SlackBuilds.org: fix .desktop and doinst. # 20220222 bkw: Modified by SlackBuilds.org: fix build on 15.0. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=LDView VERSION=${VERSION:-4.4.1} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} SRCNAM=$(echo $PRGNAM|tr '[A-Z]' '[a-z]') @@ -127,6 +128,8 @@ cp LDExporter/LGEO.xml $PKG/usr/share/$SRCNAM/LGEO.xml mkdir -p $PKG/usr/share/{applications,application-registry,mime/packages,mime-info,pixmaps} mkdir -p $PKG/usr/share/icons/gnome/32x32/mimetypes cat QT/desktop/ldview.desktop > $PKG/usr/share/applications/ldview.desktop +# 20220331 bkw: desktop-file-validate +sed -i '/^\(Encoding\|Comment\)/d' $PKG/usr/share/applications/ldview.desktop cat QT/desktop/ldraw.xml > $PKG/usr/share/mime/packages/ldraw.xml cp QT/desktop/ldraw.keys $PKG/usr/share/mime-info/ldraw.keys cp QT/desktop/ldraw.mime $PKG/usr/share/mime-info/ldraw.mime diff --git a/graphics/LDView/doinst.sh b/graphics/LDView/doinst.sh index ba98b9dbd5071..c114fdf1ea630 100644 --- a/graphics/LDView/doinst.sh +++ b/graphics/LDView/doinst.sh @@ -1,7 +1,6 @@ if [ -x /usr/bin/update-desktop-database ]; then - /usr/bin/update-desktop-database -q /usr/share/applications >/dev/null 2>&1 + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi if [ -x /usr/bin/update-mime-database ]; then - /usr/bin/update-mime-database /usr/share/mime >/dev/null 2>&1 + /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 fi - |