aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/lingot/README15
-rw-r--r--audio/lingot/doinst.sh3
-rw-r--r--audio/lingot/lingot.SlackBuild72
-rw-r--r--audio/lingot/lingot.info10
-rw-r--r--audio/lingot/mksrctarball.sh27
-rw-r--r--audio/lingot/slack-desc19
6 files changed, 146 insertions, 0 deletions
diff --git a/audio/lingot/README b/audio/lingot/README
new file mode 100644
index 0000000000000..2d8842c435046
--- /dev/null
+++ b/audio/lingot/README
@@ -0,0 +1,15 @@
+lingot (musical instrument tuner)
+
+Lingot is a musical instrument tuner. It's accurate, easy to use, and
+highly configurable. Originally conceived to tune electric guitars,
+its configurability gives it a more general character.
+
+By default, this script builds lingot with JACK support, meaning
+jack-audio-connection-kit is required. Most people who connect musical
+instruments to their Slackware box will want JACK, since it's required
+by most serious studio apps (e.g. ardour).
+
+If you want to build without JACK support, set USE_JACK=no in the
+script's environment. The resulting package will only support OSS audio,
+since lingot doesn't have native ALSA support (but works OK with ALSA's
+OSS emulation).
diff --git a/audio/lingot/doinst.sh b/audio/lingot/doinst.sh
new file mode 100644
index 0000000000000..5fb28930db0b9
--- /dev/null
+++ b/audio/lingot/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/lingot/lingot.SlackBuild b/audio/lingot/lingot.SlackBuild
new file mode 100644
index 0000000000000..a6f414e7a1145
--- /dev/null
+++ b/audio/lingot/lingot.SlackBuild
@@ -0,0 +1,72 @@
+#!/bin/sh
+
+# Slackware build script for lingot
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+PRGNAM=lingot
+VERSION=${VERSION:-20091225}
+ARCH=${ARCH:-i486}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+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"
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.xz
+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 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ --prefix=/usr \
+ --enable-jack=${USE_JACK:-yes} \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --mandir=/usr/man \
+ --docdir=/usr/doc/$PRGNAM-$VERSION \
+ --build=$ARCH-slackware-linux
+
+make
+make install-strip DESTDIR=$PKG
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+
+# These are not documentation..
+rm -f $PKG/usr/doc/$PRGNAM-$VERSION/intltool*
+
+# `make install' puts the docs in --docdir, just add the SlackBuild
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+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/lingot/lingot.info b/audio/lingot/lingot.info
new file mode 100644
index 0000000000000..34cf1e0300851
--- /dev/null
+++ b/audio/lingot/lingot.info
@@ -0,0 +1,10 @@
+PRGNAM="lingot"
+VERSION="20091225"
+HOMEPAGE="http://www.nongnu.org/lingot/"
+DOWNLOAD="http://www.liwjatan.at/files/src/lingot/lingot-20091225.tar.xz"
+DOWNLOAD_x86_64=""
+MD5SUM="235124e2846491114b7cbab6f7613ba5"
+MD5SUM_x86_64=""
+MAINTAINER="B. Watson"
+EMAIL="yalhcru@gmail.com"
+APPROVED="dsomero"
diff --git a/audio/lingot/mksrctarball.sh b/audio/lingot/mksrctarball.sh
new file mode 100644
index 0000000000000..9364d2bb84a0c
--- /dev/null
+++ b/audio/lingot/mksrctarball.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+# Create a source tarball from the lingot CVS repository.
+# The result will be /tmp/lingot-$VERSION.tar.xz
+
+REV=${1:-20091225}
+
+TMP=${TMP:-/tmp}
+WORKDIR=$TMP/tarball.$$.$RANDOM
+
+set -e
+
+rm -rf $WORKDIR
+mkdir -p $WORKDIR
+cd $WORKDIR
+
+cvs \
+ -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/lingot \
+ export \
+ -D "$REV" \
+ lingot
+
+mv lingot lingot-$REV
+tar cvfJ $TMP/lingot-$REV.tar.xz lingot-$REV
+md5sum $TMP/lingot-$REV.tar.xz
+cd $TMP
+rm -rf $WORKDIR
diff --git a/audio/lingot/slack-desc b/audio/lingot/slack-desc
new file mode 100644
index 0000000000000..ca9c031aeb6b0
--- /dev/null
+++ b/audio/lingot/slack-desc
@@ -0,0 +1,19 @@
+# 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 ':'.
+
+ |-----handy-ruler------------------------------------------------------|
+lingot: lingot (musical instrument tuner)
+lingot:
+lingot: Lingot is a musical instrument tuner. It's accurate, easy to use, and
+lingot: highly configurable. Originally conceived to tune electric guitars,
+lingot: its configurability gives it a more general character.
+lingot:
+lingot:
+lingot:
+lingot:
+lingot:
+lingot: