aboutsummaryrefslogtreecommitdiff
path: root/ham/xnec2c/xnec2c.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'ham/xnec2c/xnec2c.SlackBuild')
-rw-r--r--ham/xnec2c/xnec2c.SlackBuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/ham/xnec2c/xnec2c.SlackBuild b/ham/xnec2c/xnec2c.SlackBuild
index 0ba419748a47b..947f5e8034b11 100644
--- a/ham/xnec2c/xnec2c.SlackBuild
+++ b/ham/xnec2c/xnec2c.SlackBuild
@@ -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}