mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
ham/xnec2c: Added desktop file and icon.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
5a8d17cd11
commit
d990a76b8c
4 changed files with 19 additions and 1 deletions
3
ham/xnec2c/doinst.sh
Normal file
3
ham/xnec2c/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
|
BIN
ham/xnec2c/xnec2c-icon.png
Normal file
BIN
ham/xnec2c/xnec2c-icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
|
@ -22,7 +22,7 @@
|
|||
|
||||
PRGNAM=xnec2c
|
||||
VERSION=${VERSION:-2.9}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -83,6 +83,11 @@ make install DESTDIR=$PKG
|
|||
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
|
||||
|
||||
mkdir -p $PKG/usr/share/applications
|
||||
mkdir -p $PKG/usr/share/pixmaps
|
||||
install -m 644 $CWD/xnec2c.desktop $PKG/usr/share/applications
|
||||
install -m 644 $CWD/xnec2c-icon.png $PKG/usr/share/pixmaps
|
||||
|
||||
mkdir -p $PKG/usr/man/man1
|
||||
cp -a doc/xnec2c.1.gz $PKG/usr/man/man1
|
||||
|
||||
|
@ -99,6 +104,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}
|
||||
|
|
9
ham/xnec2c/xnec2c.desktop
Normal file
9
ham/xnec2c/xnec2c.desktop
Normal file
|
@ -0,0 +1,9 @@
|
|||
[Desktop Entry]
|
||||
Name=Xnec2c
|
||||
GenericName=GTK+ version of NEC2
|
||||
Comment=Numerical Electromagnetics Code software
|
||||
Exec=xnec2c
|
||||
Icon=xnec2c-icon
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Network;HamRadio;
|
Loading…
Reference in a new issue