ham/linpsk: Added desktop file and icon.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
58c99c5ce4
commit
1d9201b467
|
@ -0,0 +1,3 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
|
||||
fi
|
|
@ -22,7 +22,7 @@
|
|||
|
||||
PRGNAM=linpsk
|
||||
VERSION=${VERSION:-1.2}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -73,6 +73,12 @@ make
|
|||
mkdir -p $PKG/usr/bin
|
||||
install -m 755 bin/linpsk $PKG/usr/bin/
|
||||
|
||||
mkdir -p $PKG/usr/share/applications
|
||||
install -m 644 $CWD/linpsk.desktop $PKG/usr/share/applications
|
||||
|
||||
mkdir -p $PKG/usr/share/pixmaps
|
||||
install -m 644 images/linpsk.png $PKG/usr/share/pixmaps
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
|
@ -84,6 +90,7 @@ find $PKG/usr/doc -type f -exec chmod 644 {} \;
|
|||
|
||||
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:-.tgz}
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
[Desktop Entry]
|
||||
Name=LinPSK
|
||||
Name[en_US]=LinPSK
|
||||
Comment=PSK31 for Linux
|
||||
Comment[en_US]=PSK31 for Linux
|
||||
Encoding=UTF-8
|
||||
Exec=linpsk
|
||||
Icon=linpsk
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
TerminalOptions=
|
||||
Type=Application
|
||||
Categories=Application;HamRadio;
|
||||
X-DCOP-ServiceType=none
|
||||
X-KDE-SubstituteUID=false
|
Loading…
Reference in New Issue