diff options
Diffstat (limited to 'main/aumix')
-rw-r--r-- | main/aumix/APKBUILD | 36 | ||||
-rw-r--r-- | main/aumix/aumix.initd | 42 |
2 files changed, 78 insertions, 0 deletions
diff --git a/main/aumix/APKBUILD b/main/aumix/APKBUILD new file mode 100644 index 0000000000..b7e93b4232 --- /dev/null +++ b/main/aumix/APKBUILD @@ -0,0 +1,36 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=aumix +pkgver=2.9.1 +pkgrel=0 +pkgdesc="A color text mode sound mixer" +url="http://www.jpj.net/~trevor/aumix.html" +arch="all" +license="GPL" +depends= +makedepends="ncurses-dev" +source="http://jpj.net/~trevor/aumix/releases/aumix-$pkgver.tar.bz2 + aumix.initd + " + +prepare() { + cd "$srcdir"/aumix-$pkgver +} + +build() { + cd "$srcdir"/aumix-$pkgver + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --without-gtk1 \ + --without-gtk \ + --disable-nls + + make || return 1 +} + +package() { + cd "$srcdir"/aumix-$pkgver + make -j1 DESTDIR="$pkgdir" install || return 1 + install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/aumix +} +md5sums="34f28ae1c94fc5298e8bb2688c4b3a20 aumix-2.9.1.tar.bz2 +affaa735ad9b65a540842994caba18fd aumix.initd" diff --git a/main/aumix/aumix.initd b/main/aumix/aumix.initd new file mode 100644 index 0000000000..2c1741b3b9 --- /dev/null +++ b/main/aumix/aumix.initd @@ -0,0 +1,42 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/aumix/files/aumix.rc6,v 1.12 2007/03/25 13:05:51 drac Exp $ + +depend() { + use modules hotplug coldplug alsasound +} + +checkconfig() { + if ! grep -q -E 'sound|OSS|sparcaudio' /proc/devices && [ ! -d /proc/asound ] ; then + eerror "Sound support has not been compiled into the kernel," + eerror "or is disabled. Please check that the correct modules" + eerror "is loaded." + return 1 + fi + # /dev/mixer can be a symlink + if [ ! -e /dev/mixer ] ; then + eerror "/dev/mixer does not exist, please create it, or load the" + eerror "correct modules to enable your card's mixer" + return 1 + fi +} + +start() { + checkconfig || return 1 + if [ -f /etc/aumixrc ] ; then + ebegin "Loading Mixer settings" + /usr/bin/aumix -f /etc/aumixrc -L >/dev/null 2>&1 + else + ebegin "Setting Mixer settings" + /usr/bin/aumix -v75 -c75 -w75 >/dev/null 2>&1 + fi + eend $? +} + +stop() { + checkconfig || return 1 + ebegin "Saving Mixer settings" + /usr/bin/aumix -f /etc/aumixrc -S >/dev/null 2>&1 + eend $? +} |