summaryrefslogtreecommitdiff
path: root/audio/miniAudicle/miniAudicle.SlackBuild
diff options
context:
space:
mode:
authorMichales Michaloudes <korgie@gmail.com>2013-10-28 17:20:19 +0100
committerRobby Workman <rworkman@slackbuilds.org>2013-10-29 20:12:25 -0500
commite46a936705475cbf91b4781c8a682bcab120fbaf (patch)
treeb43eb3b74e3774eaf825af981580498f5dd08c55 /audio/miniAudicle/miniAudicle.SlackBuild
parent8181dfcc4f3f4be9cfdf37d1ea2fe4de17d4d0b5 (diff)
downloadslackbuilds-e46a936705475cbf91b4781c8a682bcab120fbaf.tar.gz
audio/miniAudicle: Added (IDE for Chuck).
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'audio/miniAudicle/miniAudicle.SlackBuild')
-rw-r--r--audio/miniAudicle/miniAudicle.SlackBuild77
1 files changed, 77 insertions, 0 deletions
diff --git a/audio/miniAudicle/miniAudicle.SlackBuild b/audio/miniAudicle/miniAudicle.SlackBuild
new file mode 100644
index 0000000000..b9b24ed6a0
--- /dev/null
+++ b/audio/miniAudicle/miniAudicle.SlackBuild
@@ -0,0 +1,77 @@
+#!/bin/sh
+# Slackware build script for <miniAudicle>
+#
+# Michales (clavisound) Michaloudes korgie@gmail.com <2013>
+
+PRGNAM=miniAudicle
+VERSION=${VERSION:-0.2.2c}
+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
+
+SOUNDENGINE=${SOUNDENGINE:-alsa}
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tgz
+cd $PRGNAM-$VERSION/src
+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 {} \;
+
+# Set our CFLAGS
+sed -i "s|-O3|$SLKCFLAGS|" makefile* chuck/makefile*
+
+make linux-$SOUNDENGINE
+install -m 0755 -D wxw/$PRGNAM $PKG/usr/bin/$PRGNAM-$SOUNDENGINE
+
+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.linux BUGS LGPL VERSIONS \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+# copy examples too
+cp -a examples $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}