Git Repositories

snack added
authorCyrille Pontvieux <jrd@enialis.net>
Fri, 28 Feb 2014 11:15:08 +0000 (12:15 +0100)
committerCyrille Pontvieux <jrd@enialis.net>
Fri, 28 Feb 2014 11:15:08 +0000 (12:15 +0100)
15 files changed:
snack/14.1/2.2.10/SLKBUILD [new file with mode: 0644]
snack/14.1/2.2.10/con [new file with mode: 0644]
snack/14.1/2.2.10/dep [new file with mode: 0644]
snack/14.1/2.2.10/makedep [new file with mode: 0644]
snack/14.1/2.2.10/sug [new file with mode: 0644]
snack/14.1/fixversion [new file with mode: 0644]
snack/14.1/stable [new file with mode: 0644]
snack/14.1/version [new file with mode: 0644]
snack/arch [new file with mode: 0644]
snack/buildschema [new file with mode: 0644]
snack/dlurl [new file with mode: 0644]
snack/md5sum [new file with mode: 0644]
snack/pattern [new file with mode: 0644]
snack/schema [new file with mode: 0644]
snack/url [new file with mode: 0644]

diff --git a/snack/14.1/2.2.10/SLKBUILD b/snack/14.1/2.2.10/SLKBUILD
new file mode 100644 (file)
index 0000000..970c31d
--- /dev/null
@@ -0,0 +1,63 @@
+# vim: syn=sh ft=sh et sw=2 sts=2 ts=2 tw=0:
+#Packager: Cyrille Pontvieux <jrd~at~salixos~dot~org>
+
+pkgname=snack
+pkgver=2.2.10
+pkgrel=1cp
+
+source=(http://www.speech.kth.se/snack/dist/${pkgname}${pkgver}.tar.gz http://aur.archlinux.org/packages/sn/snack/snack.tar.gz)
+sourcetemplate=http://people.salixos.org/jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/
+docs=("readme" "install" "copying" "changelog" "authors" "news" "todo" "changes" "bsd.txt")
+url=http://www.speech.kth.se/snack/
+
+slackdesc=\
+(
+#|-----handy-ruler------------------------------------------------------|
+"$pkgname (Sound toolkit for scripts)"
+"The Snack Sound Toolkit is designed to be used with a scripting"
+"language such as Tcl/Tk or Python."
+"Using Snack you can create powerful multi-platform audio applications"
+"with just a few lines of code."
+"Snack has commands for basic sound handling, such as playback,"
+"recording, file and socket I/O."
+"Snack also provides primitives for sound visualization, e.g. waveforms"
+"and spectrograms. Snack has also successfully been applied to other"
+"one-dimensional signals."
+)
+
+build() {
+  cd $SRC/${pkgname}${pkgver}/unix || return 1
+  # already defined by glibc
+  sed -i 's:#define roundf.*:/* \0 */:' ../generic/jkFormatMP3.c || return 1
+  # patch for Alsa (borrow from Arch, same patch you can find everywhere)
+  patch -p0 -i $SRC/snack/alsa.patch || return 1
+  # some CLFAGS are missing from the tlcConfig.sh
+  sed -i 's:CFLAGS=\$TCL_SHLIB_CFLAGS:CFLAGS="$TCL_SHLIB_CFLAGS $TCL_EXTRA_CFLAGS":' configure.in || return 1
+  # tcl.m4 is missing in the unix directory but is present in the win directory
+  cp ../win/tcl.m4 . || return 1
+  autoconf || return 1
+  ./configure \
+    --prefix=/usr \
+    --libdir=/usr/lib${LIBDIRSUFFIX} \
+    --localstatedir=/var \
+    --sysconfdir=/etc \
+    --build=$arch-slackware-linux \
+    --enable-alsa \
+    --with-tcl=/usr/lib${LIBDIRSUFFIX} \
+    --with-tk=/usr/lib${LIBDIRSUFFIX} \
+    || return 1
+  make -j $numjobs || return 1
+  make install DESTDIR=$PKG || return 1
+  # install the python/tk gui
+  cd ../python
+  python setup.py install --prefix=/usr --root=$PKG || return 1
+  mkdir -p $PKG/usr/bin
+  cat <<EOF > $PKG/usr/bin/tkSnack
+#!/bin/sh
+python /usr/lib${LIBDIRSUFFIX}/python*/site-packages/tkSnack.py
+EOF
+  chmod +x $PKG/usr/bin/tkSnack
+  # copy the documentation and examples
+  mkdir -p $PKG/usr/doc/$pkgname-$pkgver
+  cp -r ../demos ../doc ../ext $PKG/usr/doc/$pkgname-$pkgver/
+}
diff --git a/snack/14.1/2.2.10/con b/snack/14.1/2.2.10/con
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/snack/14.1/2.2.10/dep b/snack/14.1/2.2.10/dep
new file mode 100644 (file)
index 0000000..c535908
--- /dev/null
@@ -0,0 +1 @@
+alsa-lib,bzip2,expat,fontconfig,freetype,libX11,libXScrnSaver,libXau,libXdmcp,libXext,libXft,libXrender,libxcb,python,tcl,tk,zlib
\ No newline at end of file
diff --git a/snack/14.1/2.2.10/makedep b/snack/14.1/2.2.10/makedep
new file mode 100644 (file)
index 0000000..32e2ee6
--- /dev/null
@@ -0,0 +1 @@
+autoconf
\ No newline at end of file
diff --git a/snack/14.1/2.2.10/sug b/snack/14.1/2.2.10/sug
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/snack/14.1/fixversion b/snack/14.1/fixversion
new file mode 100644 (file)
index 0000000..c508d53
--- /dev/null
@@ -0,0 +1 @@
+false
diff --git a/snack/14.1/stable b/snack/14.1/stable
new file mode 100644 (file)
index 0000000..27ba77d
--- /dev/null
@@ -0,0 +1 @@
+true
diff --git a/snack/14.1/version b/snack/14.1/version
new file mode 100644 (file)
index 0000000..0d3ad67
--- /dev/null
@@ -0,0 +1 @@
+2.2.10
diff --git a/snack/arch b/snack/arch
new file mode 100644 (file)
index 0000000..0702cb5
--- /dev/null
@@ -0,0 +1 @@
+all
diff --git a/snack/buildschema b/snack/buildschema
new file mode 100644 (file)
index 0000000..e8c05a6
--- /dev/null
@@ -0,0 +1 @@
+configure
diff --git a/snack/dlurl b/snack/dlurl
new file mode 100644 (file)
index 0000000..02cb7ce
--- /dev/null
@@ -0,0 +1 @@
+http://www.speech.kth.se/snack/download.html
diff --git a/snack/md5sum b/snack/md5sum
new file mode 100644 (file)
index 0000000..12216f8
--- /dev/null
@@ -0,0 +1 @@
+8f2c64f3369e1bfb329c792c1abbf5ea
diff --git a/snack/pattern b/snack/pattern
new file mode 100644 (file)
index 0000000..127b2d3
--- /dev/null
@@ -0,0 +1 @@
+sed -rn '/^<font face="Arial,Helvetica">[^<]+<\/font><\/h4>/s,^[^>]+>Version ([^<]+)</font>.*,\\1,p'|sort -rV
diff --git a/snack/schema b/snack/schema
new file mode 100644 (file)
index 0000000..0d82d79
--- /dev/null
@@ -0,0 +1 @@
+custom
diff --git a/snack/url b/snack/url
new file mode 100644 (file)
index 0000000..253bc95
--- /dev/null
+++ b/snack/url
@@ -0,0 +1 @@
+http://www.speech.kth.se/snack/