aboutsummaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorAntonio Leal <antonioleal@yahoo.com>2022-06-10 23:07:00 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-06-11 08:59:04 +0700
commit8a6bfabc758955f7744eeeb8e6c7bca1a5fbd3eb (patch)
tree84545b059e0cf10b50778a1eff548d2d35b3420e /misc
parent05b2978c3a9150e5a2fda996c5943524d721e48e (diff)
misc/yaze-ag: Add .desktop, icon and doinst.sh.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'misc')
-rw-r--r--misc/yaze-ag/doinst.sh13
-rw-r--r--misc/yaze-ag/yaze-ag.SlackBuild8
-rw-r--r--misc/yaze-ag/yaze-ag.desktop9
-rw-r--r--misc/yaze-ag/yaze-ag.pngbin0 -> 34380 bytes
4 files changed, 29 insertions, 1 deletions
diff --git a/misc/yaze-ag/doinst.sh b/misc/yaze-ag/doinst.sh
new file mode 100644
index 0000000000000..aea0f894eb32b
--- /dev/null
+++ b/misc/yaze-ag/doinst.sh
@@ -0,0 +1,13 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /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
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
diff --git a/misc/yaze-ag/yaze-ag.SlackBuild b/misc/yaze-ag/yaze-ag.SlackBuild
index 8c4ae3d0134dd..9c5f27fe4c730 100644
--- a/misc/yaze-ag/yaze-ag.SlackBuild
+++ b/misc/yaze-ag/yaze-ag.SlackBuild
@@ -27,7 +27,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=yaze-ag
VERSION=${VERSION:-2.51.3}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -132,6 +132,11 @@ rm -f md5 $BUILDDIR/md5.yaze-ag
find . -type f -exec /bin/md5sum -b {} >>$BUILDDIR/md5.yaze-ag \;
mv $BUILDDIR/md5.yaze-ag md5
+mkdir -p $PKG/usr/share/pixmaps
+cp $CWD/yaze-ag.png $PKG/usr/share/pixmaps
+mkdir -p $PKG/usr/share/applications
+cp $CWD/yaze-ag.desktop $PKG/usr/share/applications
+
( cd $BINDIR ; rm -rf cpm )
( cd $BINDIR ; ln -sf yaze cpm )
( cd $BINDIR ; rm -rf z80 )
@@ -151,6 +156,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/yaze-ag-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/misc/yaze-ag/yaze-ag.desktop b/misc/yaze-ag/yaze-ag.desktop
new file mode 100644
index 0000000000000..c24fa52da9e68
--- /dev/null
+++ b/misc/yaze-ag/yaze-ag.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Yaze-AG
+Comment=Z80 Emulator with CPM
+Exec=/usr/bin/yaze
+Icon=/usr/share/pixmaps/yaze-ag.png
+Terminal=true
+Type=Application
+Categories=System;Emulator;
+
diff --git a/misc/yaze-ag/yaze-ag.png b/misc/yaze-ag/yaze-ag.png
new file mode 100644
index 0000000000000..4f174edf3aa4b
--- /dev/null
+++ b/misc/yaze-ag/yaze-ag.png
Binary files differ