aboutsummaryrefslogblamecommitdiffstats
path: root/main/alsa-utils/APKBUILD
blob: b21d8a60c2d4dd7cb4235d27ef2c1e930f6d17e0 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                      

                                                   
            
        

                                                                            
          
             
                                                            
                
                                                





                                                                     
                                    
           
                       
                                     




                                                                        
                

 
         
                       



                                 
                                 
                               




                           
                       



                                                                




                                 


                                                 

 
                                                                   
                                                
                                            
                                             
                                                                                                      
                                                                                
                                                                            
                                                                             
                                                                                                                                                                      
                                                                                                                                                
                                                                                                                                            
                                                                                                                                             
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=alsa-utils
pkgver=1.1.2
pkgrel=0
pkgdesc="Advanced Linux Sound Architecture Utils (alsactl, alsamixer, etc.)"
url="http://www.alsa-project.org"
arch="all"
license="GPL"
makedepends="alsa-lib-dev pciutils-dev ncurses-dev fftw-dev"
depends="dialog"
subpackages="$pkgname-doc alsaconf $pkgname-dbg"
source="ftp://ftp.alsa-project.org/pub/utils/$pkgname-$pkgver.tar.bz2
	alsaconf.patch
	alsa.initd
	alsa.confd
	"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
	update_config_sub || return 1
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	return 0
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--disable-xmlto \
		--disable-nls \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -D -m755 ../alsa.initd "$pkgdir"/etc/init.d/alsa
	install -D -m644 ../alsa.confd "$pkgdir"/etc/conf.d/alsa
}

alsaconf() {
	arch="noarch"
	depends="alsa-utils bash"
	cd "$_builddir"
	mkdir -p "$subpkgdir"/usr/sbin
	mv "$pkgdir"/usr/sbin/alsaconf \
		"$subpkgdir"/usr/sbin || return 1
}

md5sums="38ac7c781f80c41c02b4664d8cbafa87  alsa-utils-1.1.2.tar.bz2
5e65f278b5a77e3ee2821ad955c4cd91  alsaconf.patch
e67a407b22eee4e7c7132cd417ce51cf  alsa.initd
415adf8d230c3ac9871b16d8ab176193  alsa.confd"
sha256sums="7af603c0877d1251599d65b4fbc372e63a54371b888f5c26c6a86ac1d0519071  alsa-utils-1.1.2.tar.bz2
b99468473fe20de4fac3aeae833612837ff1cb576e68674463fe1efd0aed6d19  alsaconf.patch
3d880247df95867f36d5d37949f81e5bd11eb422af29631e9a9489b7cb6bd6bf  alsa.initd
a3383d2aa7af1b2725c1167f1f6d5f86505de653fed3c2b8cc8fb3fd5c0d4c5c  alsa.confd"
sha512sums="38dc3331e8410123085738e74ca34c860666027ee2f6aaa21f48e726c84d8e6264043c8c7111ce2b1e158a0f38142a04d72a128ee54e00173dc4e4ba514d2f14  alsa-utils-1.1.2.tar.bz2
bc9f1297574fe4d5bd9baa3f299d68684182f1e6eeb51c862cd6236563516f57a160a00d6607540830aebbb8c4352faf416a981edc878e8a256cbbcc95648614  alsaconf.patch
8a52e6363d5dcfb16e1e607e1af3e46a2148989689e5ab04caf05f84dc68b34cc003b1cf0945ce2c3670cc7f3ef0e40824f689f1efa2d09177c82b13571a7168  alsa.initd
6e716e6230fd3d2c33e3cb2dbf572d632c9ac6452c1768388bea7d3ca22f7c72cf6bcd702580f45cb9089983582011c8b04cbdb4420d14fb988167b1391ea547  alsa.confd"