diff options
author | Johannes Schoepfer <slackbuilds@schoepfer.info> | 2019-11-23 15:17:26 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-11-23 15:17:26 +0700 |
commit | 8068bc0c1f154645446be2fdffb772b9933bb0e2 (patch) | |
tree | 139f606199f9e989954064b79948208b3a004074 /audio/a2jmidid/a2jmidid.SlackBuild | |
parent | 0f771d7d7204181602291c34bb013fa91b46a0e1 (diff) | |
download | slackbuilds-8068bc0c1f154645446be2fdffb772b9933bb0e2.tar.gz |
audio/a2jmidid: Updated for version 9.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/a2jmidid/a2jmidid.SlackBuild')
-rw-r--r-- | audio/a2jmidid/a2jmidid.SlackBuild | 41 |
1 files changed, 22 insertions, 19 deletions
diff --git a/audio/a2jmidid/a2jmidid.SlackBuild b/audio/a2jmidid/a2jmidid.SlackBuild index 47c531a305..24a7240ee0 100644 --- a/audio/a2jmidid/a2jmidid.SlackBuild +++ b/audio/a2jmidid/a2jmidid.SlackBuild @@ -43,24 +43,30 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -meson \ - --prefix=/usr \ - build -ninja -C build -DESTDIR=$PKG meson install -C build +mkdir build +cd build + CFLAGS="$SLKCFLAGS" \ + CXXFLAGS="$SLKCFLAGS" \ + meson .. \ + --buildtype=release \ + --infodir=/usr/info \ + --libdir=/usr/lib${LIBDIRSUFFIX} \ + --localstatedir=/var \ + --mandir=/usr/man \ + --prefix=/usr \ + --sysconfdir=/etc + ninja + DESTDIR=$PKG ninja install +cd .. find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -# move man pages to correct location -mv $PKG/usr/share/man $PKG/usr/ 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 @@ -73,17 +79,14 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -# Only add capability stuff if not disabled: if [ "${SETCAP:-yes}" = "yes" ]; then - # set realtime capabilities for i in \ a2j_control j2amidi_bridge a2jmidi_bridge a2j a2jmidid - do + do echo "/sbin/setcap cap_ipc_lock,cap_sys_nice=ep usr/bin/$i" >> $PKG/install/doinst.sh + chown root:audio $PKG/usr/bin/$i + chmod 0750 $PKG/usr/bin/$i done - # Only allow execution by audio group - chown root:audio $PKG/usr/bin/* - chmod 0750 $PKG/usr/bin/* fi cd $PKG |