summaryrefslogtreecommitdiff
path: root/audio/jack_capture/jack_capture.SlackBuild
diff options
context:
space:
mode:
authorMichales Michaloudes <korgie@gmail.com>2011-07-10 14:00:08 -0300
committerNiels Horn <niels.horn@slackbuilds.org>2011-07-14 19:51:01 -0300
commitcc1639d8ed97dea7e5cfd7b29b7df2edc8b7a1f4 (patch)
treedfece2e53a86a91c6253f971c9cdff5b4a9e571d /audio/jack_capture/jack_capture.SlackBuild
parentab940228988d548140ccd2454571a7cab0099372 (diff)
downloadslackbuilds-cc1639d8ed97dea7e5cfd7b29b7df2edc8b7a1f4.tar.gz
audio/jack_capture: Added (jack-based audio recorder)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'audio/jack_capture/jack_capture.SlackBuild')
-rw-r--r--audio/jack_capture/jack_capture.SlackBuild85
1 files changed, 85 insertions, 0 deletions
diff --git a/audio/jack_capture/jack_capture.SlackBuild b/audio/jack_capture/jack_capture.SlackBuild
new file mode 100644
index 0000000000..955cc2665b
--- /dev/null
+++ b/audio/jack_capture/jack_capture.SlackBuild
@@ -0,0 +1,85 @@
+#!/bin/sh
+# Slackware build script for <jack_capture>
+# Written by Michales Michaloudes korgie@gmail.com
+
+PRGNAM=jack_capture
+VERSION=${VERSION:-0.9.57}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find . \
+ \( -perm 777 -o -perm 775 -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 {} \;
+
+
+# prefix correction
+sed -i -e 's+/usr/local+/usr+g' Makefile
+
+# compile flags correction
+sed -i -e "s/OPTIMIZE=-O3.*/OPTIMIZE=${SLKCFLAGS}/g" Makefile
+
+#CFLAGS="$SLKCFLAGS" \
+#CXXFLAGS="$SLKCFLAGS" \
+make
+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/doc/$PRGNAM-$VERSION
+cd $TMP/$PRGNAM-$VERSION/
+cp -a \
+ COPYING README \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+# cp KDE desktop icon
+mkdir -p $PKG/usr/share/applications
+mkdir -p $PKG/usr/share/$PRGNAM\_gui2
+cp -a $CWD/${PRGNAM}_gui2.desktop $PKG/usr/share/applications
+cp -a $CWD/$PRGNAM*.xpm $PKG/usr/share/${PRGNAM}_gui2/
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}