summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0000000000..aea0f894eb
--- /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 8c4ae3d013..9c5f27fe4c 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 0000000000..c24fa52da9
--- /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 0000000000..4f174edf3a
--- /dev/null
+++ b/misc/yaze-ag/yaze-ag.png
Binary files differ