summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/seq24/seq24.SlackBuild28
1 files changed, 20 insertions, 8 deletions
diff --git a/audio/seq24/seq24.SlackBuild b/audio/seq24/seq24.SlackBuild
index 05c62fd225..93211255d5 100644
--- a/audio/seq24/seq24.SlackBuild
+++ b/audio/seq24/seq24.SlackBuild
@@ -28,12 +28,10 @@ VERSION=${VERSION:-0.9.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -93,6 +91,22 @@ 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/pixmaps
+cp src/pixmaps/seq24.xpm $PKG/usr/share/pixmaps
+mkdir -p $PKG/usr/share/applications
+cat << 'EOF' > $PKG/usr/share/applications/seq24.desktop
+[Desktop Entry]
+Encoding=UTF-8
+Name=Seq24
+Comment=MIDI Sequencer
+GenericName=Interactive MIDI Sequencer
+Type=Application
+Categories=AudioVideo;Audio;
+Exec=seq24
+Icon=/usr/share/pixmaps/seq24.xpm
+Terminal=false
+EOF
+
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
@@ -102,15 +116,13 @@ cat $CWD/$PRGNAM.SlackBuild > /$PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
-# Only add capability stuff if not disabled:
if [ "${SETCAP:-yes}" = "yes" ]; then
- # set realtime capabilities
- echo "/sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/seq24" \
+ echo "/sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$PRGNAM" \
>> $PKG/install/doinst.sh
- # Only allow execution by audio group
- chown root:audio $PKG/usr/bin/*
- chmod 0750 $PKG/usr/bin/*
+ chown root:audio $PKG/usr/bin/$PRGNAM
+ chmod 0750 $PKG/usr/bin/$PRGNAM
fi
cd $PKG