diff options
author | Johannes Schoepfer <slackbuilds@schoepfer.info> | 2019-12-01 00:43:34 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-12-01 00:43:34 +0700 |
commit | 20aad5a2ecb350777605fd06ee2694146a5fe656 (patch) | |
tree | 8bf4a6cfc0ed9d58b3f3717f9026af1a650ce3a6 /audio/seq24 | |
parent | b7b2242e62b5edb189f202a9b1f29aae800fd301 (diff) |
audio/seq24: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/seq24')
-rw-r--r-- | audio/seq24/seq24.SlackBuild | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/audio/seq24/seq24.SlackBuild b/audio/seq24/seq24.SlackBuild index 05c62fd225d35..93211255d5aaf 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 |