aboutsummaryrefslogtreecommitdiff
path: root/audio/snd
diff options
context:
space:
mode:
authorArthur W. Green <lynx@panix.com>2016-03-03 16:20:22 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-03-03 16:22:55 +0700
commit647f4be6cbde80e8fb2cb7196b0c6b83f98ea3c6 (patch)
tree18cbd8786afebb99117cbc3209ec7e81e5e20469 /audio/snd
parent9da849cf7ea391285a651576f5834bf1abfc3200 (diff)
audio/snd: Added (A sound editor).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/snd')
-rw-r--r--audio/snd/README11
-rw-r--r--audio/snd/doinst.sh3
-rw-r--r--audio/snd/slack-desc17
-rw-r--r--audio/snd/snd-icon48x48.xpm68
-rw-r--r--audio/snd/snd.SlackBuild112
-rw-r--r--audio/snd/snd.desktop11
-rw-r--r--audio/snd/snd.info10
7 files changed, 232 insertions, 0 deletions
diff --git a/audio/snd/README b/audio/snd/README
new file mode 100644
index 000000000000..9c78c061558e
--- /dev/null
+++ b/audio/snd/README
@@ -0,0 +1,11 @@
+Snd is a sound editor modelled loosely after Emacs. It is highly
+programmable, supports a variety of audio and sample file formats,
+includes a complete implementation of Common Lisp Music (CLM), and
+can be run sans GUI as a scripting engine.
+
+This script build against the Motif toolkit primarily because
+Snd's GTK+ interface doesn't seem as well-tested (tending to crash
+unexpectedly on this maintainer's x86_64 machines), but also because
+it supports OpenGL rendering of spectrograms.
+
+Comment out the "--with-gl" line in snd.SlackBuild if you don't want this.
diff --git a/audio/snd/doinst.sh b/audio/snd/doinst.sh
new file mode 100644
index 000000000000..5fb28930db0b
--- /dev/null
+++ b/audio/snd/doinst.sh
@@ -0,0 +1,3 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
+fi
diff --git a/audio/snd/slack-desc b/audio/snd/slack-desc
new file mode 100644
index 000000000000..48c86780d6b1
--- /dev/null
+++ b/audio/snd/slack-desc
@@ -0,0 +1,17 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+snd: snd (A sound editor)
+snd:
+snd: Snd is a sound editor modelled loosely after Emacs. It is highly
+snd: programmable, supports a variety of audio and sample file formats,
+snd: includes a complete implementation of Common Lisp Music (CLM), and
+snd: can be run sans GUI as a scripting engine.
+snd:
+snd: https://ccrma.stanford.edu/software/snd/
+snd:
diff --git a/audio/snd/snd-icon48x48.xpm b/audio/snd/snd-icon48x48.xpm
new file mode 100644
index 000000000000..9bc3acac31a4
--- /dev/null
+++ b/audio/snd/snd-icon48x48.xpm
@@ -0,0 +1,68 @@
+/* XPM */
+static char * snd_icon48x48_xpm[] = {
+"48 48 17 1",
+" c None",
+". c #B4B490",
+"+ c #A9A987",
+"@ c #39392E",
+"# c #2B2B22",
+"$ c #D2D2A8",
+"% c #C6C69E",
+"& c #1B1B16",
+"* c #0F0F0C",
+"= c #F1F1C1",
+"- c #E3E3B6",
+"; c #7E7E65",
+"> c #6F6F59",
+", c #909073",
+"' c #535342",
+") c #FFFFCC",
+"! c #000000",
+"))))))))))))))))))))))))))))))))))))))))))))))))",
+")!)&&&!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!-!-!)",
+")!!!!!!!!!!!!!!!!!+++++)))))))))))))))))))))))!)",
+")!@)!-))!!!!)>!!),!!))))!))!!!!))))!!!!!!!!!!!!)",
+")!!!)!!!)@!)!))!!!!!)!!)!!))!@)!!!!!))!!)))!!!!)",
+")@!!)!))))+,!!!!))!!!!)))!))))!))!!!)))))!)!)!!)",
+")@!!)!)!!!%&!)))!!!!!!!!!)@)!!)!!))!,)!))))!!!!)",
+"))!)))!!!)),!!!!!)!>))))!,;)!!!!!)!)!))!))))>!!)",
+"))!)!)))!!))#)!)!)))))))!)))))),)!)$)%=)!!!%!,!)",
+")@!)!!!!)))))!)!))))))!)!!))))))!!))>)!))!))!)!)",
+"))!').)!))))!!!)))))!!!))!!!!!@)!))!)!)!!!!!!)!)",
+"))!!)!)!)!!)!!!))))!))))!)!!)!)))!)))))!)),)!)!)",
+"))!!!!!))!))!!)))))!!!!!!!!))!))!;)))')!!)!)!)!)",
+"));+)!!)!!*))!)))))!)!))!))))!)))!)!))@-!!!!!)!)",
+"))!!!!))!!)!!!)))))!!!!)!)!))!!)!!)!!!!!!)!)!)!)",
+"))!!)!)!=)!!!!)))))!+-!))))))!!)!!)!)))!!!!)!)!)",
+"))!)))!!)!))!)))))))!!!!!&!)))))!!)!)!))))!)!)!)",
+"!))!-)!)!!))!))))))))!)!)!!)))!!!)!))!-))!))!)!)",
+"!)!!)!)!&-);!)!)))))))!!!)!))!!)))))!!-)!!)-))!)",
+"!)!!))!)!!)'!)!>))))))))!)!!!!!#)!))!))!!+!!!)!)",
+"!)!!!!!))!)))!!!)))))))))!!!))!)))!)!!!!)))!!)!)",
+"!)!!)!!!!)!-@)!!!)))))))))!;!)!!)!!))!!!!)!)!)!)",
+"!)!!)!)!!!)!)))!!!))))))))))!!!)!!)!))!)))))!)!)",
+"!)!!)!)!)@))!!%)))!-)))))))))!))))!=)!!)))))!)!)",
+"))%)!)!!)!!!))))!)+!!)))))))))!))))))!)))!))))!)",
+"!)!)!!$!!)!)))))!)),!)!)))))))))!!!!)!!!))))!)!)",
+"!))!)!)!)!!!)!!!!)))'!!!)))))!!!!!!@!!)!!!&)!)!)",
+"!)!)!!)!!)!)!!!)!)!!)!))!))))))))!!!)!!)!)))!)!)",
+"!)!'!!)!!)!)!))!)!!!!)!)!)!))))))@!!!>!!!!!!))!)",
+"!)!!!!!))+'!!))!*!))!!!))!!!))))))))))+)))))!)!)",
+"!)!)!!))!!))!))!)!!!))!.))!!))))))!))!!))))!!)!)",
+"!)!!)),)!!!!!))!!!)&!!)))!!)!)))))!!-))!!,!!!)!)",
+"!))!!!)!))!!!))!!)!!!!))!!)!!)))))!!!!))!))!!)!)",
+"!))!)!%)!))$!!))!!!'!!)!)).)!)))))!@!!))!!)!!)!)",
+"!)!)!)))!)))))))!))!!&)!))!!!)))))))!)!!!!)!))!)",
+"!))!!)&!))!)!)))'!)!!)!))!))!))))!!)>))!!!)!))!)",
+"!)!!)!))!')!!)))))@)!!)!!)!!)))))!!!'))!>))!!)!)",
+"!)>!);!)&)))!))))))!)))'!!*)))))!!!!)))=)'))!)!)",
+"!)!)!)!!!)+!!!))))))!!'!)))))))!!!!@)))!!)!)!)!)",
+"!)!!!)!!)!!)!!!!))!)!!)))))))!!!!)))))!)))))!)!)",
+"!))!))!))!)!)!)!!!))!)))))!!+)!!))))>!))!)!!!)!)",
+"!))!)!!!!)!!))!))))!!!))!)!)!!!))!))))))))))!)!)",
+"!)!%)))!!!!))!)!!!!%)!)!'&!)!!@),)!!))&-)')-))!)",
+"!)!)!!))))))))))!)%)))-!!))!!))!!)!!))!)))))!)%)",
+"!))!!)))!!))@)=))!!!!!)!)!!)!!)!)!)@)))!!)!)!)%)",
+"!)!!!!!!)))>)!!!)))>)!)!),!))),)@)!!))))!!)!!)))",
+"!))))))))))))))))))'!!!!!!!!!!!!!!!!!!!!!!!!!)%)",
+"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!&&))))))))))))))%)"};
diff --git a/audio/snd/snd.SlackBuild b/audio/snd/snd.SlackBuild
new file mode 100644
index 000000000000..7b6aeeec704f
--- /dev/null
+++ b/audio/snd/snd.SlackBuild
@@ -0,0 +1,112 @@
+#!/bin/sh
+
+# SlackBuild for Snd, rev. 2 March 2016
+# Arthur W. Green <lynx@panix.com>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# Snd itself remains a copyrighted work. Please see the file COPYING
+# in the Snd source distribution for more on this.
+
+PRGNAM=snd
+VERSION=${VERSION:-16.3}
+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
+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 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --with-alsa \
+ --with-motif \
+ --with-gl \
+ --with-s7 \
+ --with-gsl \
+ --with-fftw \
+ --build=$ARCH-slackware-linux
+
+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
+
+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
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a COPYING README.Snd $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+# Add desktop file and menu icon.
+install -D -m 0644 $CWD/snd.desktop $PKG/usr/share/applications/snd.desktop
+install -D -m 0644 $CWD/snd-icon48x48.xpm $PKG/usr/share/pixmaps/snd.xpm
+
+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}
diff --git a/audio/snd/snd.desktop b/audio/snd/snd.desktop
new file mode 100644
index 000000000000..5c6300c877b7
--- /dev/null
+++ b/audio/snd/snd.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Exec=/usr/bin/snd
+Icon=snd
+Name=Snd
+GenericName=Snd Editor
+GenericName[fr]=Snd Éditeur
+GenericName[ja]=Snd エディタ
+GenericName[ru]=Snd редактор
+StartupNotify=true
+Type=Application
+Categories=Audio;AudioVideo;
diff --git a/audio/snd/snd.info b/audio/snd/snd.info
new file mode 100644
index 000000000000..790ded89112e
--- /dev/null
+++ b/audio/snd/snd.info
@@ -0,0 +1,10 @@
+PRGNAM="snd"
+VERSION="16.3"
+HOMEPAGE="https://ccrma.stanford.edu/software/snd/"
+DOWNLOAD="ftp://ccrma-ftp.stanford.edu/pub/Lisp/snd-16.3.tar.gz"
+MD5SUM="d7ade48a312186769ab7cbfd08d72b47"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Arthur W. Green"
+EMAIL="lynx@panix.com"