aboutsummaryrefslogblamecommitdiffstats
path: root/main/aumix/APKBUILD
blob: 694561695d1b01956d5060569865014f198bf71f (plain) (tree)
1
2
3
4
5
6
7
8


                                                   
        


                                           
        







                                                          
            





                                          




                                                        






                                         




                                                      






                                                                          
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=aumix
pkgver=2.8
pkgrel=3
pkgdesc="A color text mode sound mixer"
url="http://www.jpj.net/~trevor/aumix.html"
license="GPL"
depends=
makedepends="ncurses-dev"
source="http://jpj.net/~trevor/aumix/aumix-$pkgver.tar.bz2
	aumix-2.8-mute.patch
	aumix-2.8-nohome.patch
	aumix-2.8-save_load.patch
	aumix.initd
	"

prepare() { 
	cd "$srcdir"/aumix-$pkgver
	for i in ../*.patch; do
		msg "Applying $i..."
		patch -p1 < $i || return 1
	done

	sed -i -e '/USE_NLS=yes/d' configure || return 1
}

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="dc3fc7209752207c23e7c94ab886b340  aumix-2.8.tar.bz2
3611c0372870a0ad67630231fe576e32  aumix-2.8-mute.patch
6c8d691beb495257d8309e58c127acd2  aumix-2.8-nohome.patch
113377f0f69925467a5a5b633a78160c  aumix-2.8-save_load.patch
affaa735ad9b65a540842994caba18fd  aumix.initd"