mirror of
https://github.com/Ponce/slackbuilds
synced 2024-12-02 13:04:42 +01:00
ham/ebook2cwgui: Added desktop file and icon.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
61db789894
commit
043b31f18a
3 changed files with 21 additions and 1 deletions
3
ham/ebook2cwgui/doinst.sh
Normal file
3
ham/ebook2cwgui/doinst.sh
Normal file
|
@ -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=ebook2cwgui
|
||||
VERSION=${VERSION:-0.1.2}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -75,6 +75,12 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
make DESTDIR=$PKG/usr
|
||||
make install DESTDIR=$PKG/usr
|
||||
|
||||
mkdir -p $PKG/usr/share/applications
|
||||
install -m 644 $CWD/ebook2cwgui.desktop $PKG/usr/share/applications
|
||||
|
||||
mkdir -p $PKG/usr/share/pixmaps
|
||||
install -m 644 ebook2cw.xpm $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
|
||||
|
||||
|
@ -89,6 +95,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}
|
||||
|
|
10
ham/ebook2cwgui/ebook2cwgui.desktop
Normal file
10
ham/ebook2cwgui/ebook2cwgui.desktop
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Name=ebook2cwgui
|
||||
GenericName=ebook to Morse Converter
|
||||
Comment=Converts ebooks to Morse MP3s/OGGs
|
||||
Exec=ebook2cwgui
|
||||
Icon=ebook2cw
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Audio;HamRadio;
|
||||
|
Loading…
Reference in a new issue