diff options
author | B. Watson <yalhcru@gmail.com> | 2012-12-16 21:27:30 +0100 |
---|---|---|
committer | Matteo Bernardini <ponce@slackbuilds.org> | 2012-12-16 21:27:49 +0100 |
commit | 8f205ee3e3f085fc9047c5cab8d1b5f070698f3f (patch) | |
tree | 2fa9cebc40b3110d4a8530e9932ce5b4979dddb8 /audio/guitarix/guitarix.SlackBuild | |
parent | 74c90f7fee112da2cdf4e216c4ba47b69c98cef4 (diff) |
audio/guitarix: Updated for version 0.24.3
Added man page, realtime capabilities,
fixed .desktop file and added README to /usr/doc.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/guitarix/guitarix.SlackBuild')
-rw-r--r-- | audio/guitarix/guitarix.SlackBuild | 41 |
1 files changed, 35 insertions, 6 deletions
diff --git a/audio/guitarix/guitarix.SlackBuild b/audio/guitarix/guitarix.SlackBuild index 1acf99bb83031..91cce751f7c15 100644 --- a/audio/guitarix/guitarix.SlackBuild +++ b/audio/guitarix/guitarix.SlackBuild @@ -1,11 +1,18 @@ -#!/bin/sh +#!/bin/bash -# Slackware build script for <guitarix> +# Slackware build script for guitarix # Written by Michales Michaloudes korgie@gmail.com +# Modified by B. Watson <yalhcru@gmail.com>: +# - Upgraded to guitarix2 +# - Added man page +# - Added realtime capabilities +# - Make .desktop file validate +# - Add guitarix's README to /usr/doc + PRGNAM=guitarix -VERSION=${VERSION:-0.11.1} -BUILD=${BUILD:-2} +VERSION=${VERSION:-0.24.3} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -35,13 +42,17 @@ else LIBDIRSUFFIX="" fi +# Tarballs are now named "guitarix2-$VERSION", but the dir inside the +# tarball is still "guitarix-$VERSION". +TARNAME=${PRGNAM}2 + set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +tar xvf $CWD/$TARNAME-$VERSION.tar.bz2 cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -50,6 +61,12 @@ find . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; +# Confusing freedesktop.org standard is confusing. +# To pass desktop-file-validate, we need both Audio and AudioVideo, even +# though the wording of the error message is 'requires another category to +# be present among', implying we should only need Audio *or* AudioVideo. +sed -i '/^Categories/s,$,Audio;,;' $PRGNAM.desktop.in + ./waf configure \ --prefix=/usr \ --cxxflags-release="$SLKCFLAGS" \ @@ -60,8 +77,12 @@ find . \ 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 +# Man page written for this SlackBuild +mkdir -p $PKG/usr/man/man1 +gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a COPYING changelog README.developers $PKG/usr/doc/$PRGNAM-$VERSION +cp -a COPYING changelog README* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild find $PKG/usr/doc -type f -exec chmod 0644 {} \; @@ -69,5 +90,13 @@ 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 + cat $CWD/setcap.sh >> $PKG/install/doinst.sh + # Only allow execution by audio group + chown root:audio $PKG/usr/bin/$PRGNAM + chmod 0750 $PKG/usr/bin/$PRGNAM +fi + cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} |