Browse Source
graphics/LDView: Fix .desktop, doinst.sh.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/186/head
B. Watson
4 years ago
committed by
Willy Sudiarto Raharjo
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with
6 additions and
4 deletions
-
graphics/LDView/LDView.SlackBuild
-
graphics/LDView/doinst.sh
|
|
|
@ -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 |
|
|
|
|
|
|
|
@ -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 |
|
|
|
|