diff options
author | ponce <matteo.bernardini@gmail.com> | 2011-12-28 05:31:25 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-12-31 00:24:39 -0600 |
commit | 27731d90c8962966cbdd494603ce3a3e4d006a6b (patch) | |
tree | 5b37bc65f7604ab3ce885745aa2d2034b8fe2228 /audio/qastools | |
parent | 6513ef391ca0b0e3571ed96b2f4ac4ae175b6b72 (diff) | |
download | slackbuilds-27731d90c8962966cbdd494603ce3a3e4d006a6b.tar.gz |
audio/qastools: Added (alsa desktop utilities)
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'audio/qastools')
-rw-r--r-- | audio/qastools/README | 7 | ||||
-rw-r--r-- | audio/qastools/doinst.sh | 8 | ||||
-rw-r--r-- | audio/qastools/qastools.SlackBuild | 81 | ||||
-rw-r--r-- | audio/qastools/qastools.info | 10 | ||||
-rw-r--r-- | audio/qastools/slack-desc | 19 |
5 files changed, 125 insertions, 0 deletions
diff --git a/audio/qastools/README b/audio/qastools/README new file mode 100644 index 0000000000..b1e4409c15 --- /dev/null +++ b/audio/qastools/README @@ -0,0 +1,7 @@ +qastools (alsa desktop utilities) + +QasTools is a collection of desktop applications for the linux +alsa sound system: +- QasMixer: mixer for alsa's Simple Mixer Interfaces. +- QasHctl: mixer for alsa's High level Control Interface. +- QasConfig: browser for the alsa configuration tree. diff --git a/audio/qastools/doinst.sh b/audio/qastools/doinst.sh new file mode 100644 index 0000000000..0a02ce22c8 --- /dev/null +++ b/audio/qastools/doinst.sh @@ -0,0 +1,8 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/audio/qastools/qastools.SlackBuild b/audio/qastools/qastools.SlackBuild new file mode 100644 index 0000000000..4665342a5c --- /dev/null +++ b/audio/qastools/qastools.SlackBuild @@ -0,0 +1,81 @@ +#!/bin/sh + +# Slackware build script for qastools +# Written by ponce <matteo.bernardini@gmail.com> + +PRGNAM=qastools +VERSION=${VERSION:-0.16.1} +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 + +DOCS="CHANGELOG COPYING README TODO" + +set -e # Exit on most errors + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf ${PRGNAM}_${VERSION} +tar xvf $CWD/${PRGNAM}_${VERSION}.tar.?z* +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 {} \; + +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG +cd .. + +# move the man pages in the proper place +mv $PKG/usr/share/man $PKG/usr/man + +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 +cp -a $DOCS $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 +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/qastools/qastools.info b/audio/qastools/qastools.info new file mode 100644 index 0000000000..3e03110704 --- /dev/null +++ b/audio/qastools/qastools.info @@ -0,0 +1,10 @@ +PRGNAM="qastools" +VERSION="0.16.1" +HOMEPAGE="http://xwmw.org/qastools/" +DOWNLOAD="http://downloads.sourceforge.net/qastools/qastools_0.16.1.tar.bz2" +MD5SUM="463f2cd4bd51086f6ee8ecc00c5a2969" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="ponce" +EMAIL="matteo.bernardini@gmail.com" +APPROVED="Erik Hanson" diff --git a/audio/qastools/slack-desc b/audio/qastools/slack-desc new file mode 100644 index 0000000000..c145a64665 --- /dev/null +++ b/audio/qastools/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +qastools: qastools (alsa desktop utilities) +qastools: +qastools: QasTools is a collection of desktop applications for the linux +qastools: alsa sound system: +qastools: - QasMixer: mixer for alsa's Simple Mixer Interfaces. +qastools: - QasHctl: mixer for alsa's High level Control Interface. +qastools: - QasConfig: browser for the alsa configuration tree. +qastools: +qastools: homepage: http://xwmw.org/qastools/ +qastools: +qastools: |