summaryrefslogtreecommitdiffstats
path: root/audio/guitarix/guitarix.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'audio/guitarix/guitarix.SlackBuild')
-rw-r--r--audio/guitarix/guitarix.SlackBuild46
1 files changed, 23 insertions, 23 deletions
diff --git a/audio/guitarix/guitarix.SlackBuild b/audio/guitarix/guitarix.SlackBuild
index aab340422d..a8920d8910 100644
--- a/audio/guitarix/guitarix.SlackBuild
+++ b/audio/guitarix/guitarix.SlackBuild
@@ -45,17 +45,34 @@
# Patch 0003-fix-build-even-for-gcc4.8.patch doesn't fix it, and there
# are no further fixes upstream at this time.
+# 20160806 bkw:
+# - Updated for 0.35.1
+# - removed WEBKIT=no option from README (it was removed from the
+# script in March, should have been removed from README then).
+# - removed webkitgtk from REQUIRES, as it's now optional (and
+# autodetected, no way to force-disable it).
+# - removed patches, since they're already included in the new release.
+# - remove unimplemented SSE=no option. Note that SSE support is still
+# autodetected, so if someone's trying this on e.g. ARCH=arm, it should
+# automatically build without SSE (I have no idea if the build will
+# actually complete, in that case).
+# - remove .desktop sed stuff, upstream fixed it.
+# - update man page.
+# - note: zita-convolver and zita-resampler are not requirements. they
+# will be linked if installed, otherwise guitarix's bundled copies will
+# be used. I only mention this here so I won't forget again...
+
# Modified version released under the WTFPL, for details see
# http://www.wtfpl.net/txt/copying/
PRGNAM=guitarix
-VERSION=${VERSION:-0.34.0}
+VERSION=${VERSION:-0.35.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
- i?86) ARCH=i486 ;;
+ i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
@@ -66,8 +83,8 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686 -msse"
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686 -msse"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686 -msse"
@@ -90,7 +107,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$TARNAME-$VERSION.tar.bz2
+tar xvf $CWD/$TARNAME-$VERSION.tar.xz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
@@ -99,27 +116,11 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -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
-
# this is no longer documented in README, but still here for debugging.
if [ "${LV2:-yes}" = "no" ]; then
LV2OPT=--no-lv2
fi
-# patches are optional (undocumented in README, on purpose)
-if [ "${PATCH:-no}" = "yes" ]; then
- for patch in $CWD/patches/*.patch; do
- patch -p2 < "$patch"
- done
-fi
-
-# Disallow building non-SSE package
-[ "${SSE:-yes}" = "no" ] && echo "Building a non-SSE package is not supported." && exit 1
-
LIBDIR="/usr/lib${LIBDIRSUFFIX}"
./waf configure \
--prefix=/usr \
@@ -139,8 +140,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
# Shared libraries are supposed to be +x.
chmod 755 $PKG/$LIBDIR/libgx*.so.?.?
-# Man page written for this SlackBuild. It's for guitarix-0.32.3, but
-# the command line options haven't changed since then.
+# Man page written for this SlackBuild, see guitarix.rst.
mkdir -p $PKG/usr/man/man1
gzip -9c < $CWD/$PRGNAM.1 > $PKG/usr/man/man1/$PRGNAM.1.gz