aboutsummaryrefslogblamecommitdiffstats
path: root/main/flac/APKBUILD
blob: d358fe2167e02570ef127012d59055a1cecbec5e (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                   

            
                                   
                            
          
                                  
                                     
                                       
                                  
                                                                    
 



                     
 
         
                        
                        



                                                        
 



                                 


                                         
                                 
                            




                           
                  


           
                                      
 


                                                                  
                                                                                                                                                                
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=flac
pkgver=1.3.3
pkgrel=0
pkgdesc="Free Lossless Audio Codec"
url="https://xiph.org/flac/"
arch="all"
license="custom:Xiph LGPL GPL FDL"
options="!check" # Tests are infinite
subpackages="$pkgname-dev $pkgname-doc"
makedepends="libogg-dev !libiconv"
source="http://downloads.xiph.org/releases/flac/flac-$pkgver.tar.xz"

# secfixes:
#   1.3.2-r2:
#     - CVE-2017-6888


build() {
	local _arch_conf
	case "$CARCH" in
		ppc*)	_arch_conf="--enable-altivec" ;;
		x86_64)	_arch_conf="--enable-sse" ;;
		x86)	_arch_conf="--disable-sse" ;;
	esac

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--enable-shared \
		--enable-ogg \
		--disable-rpath \
		--with-pic \
		$_arch_conf
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install

	install -Dm0644 COPYING.Xiph \
		"$pkgdir"/usr/share/licenses/$pkgname/COPYING.Xiph
}
sha512sums="d6417e14fab0c41b2df369e5e39ce62a5f588e491af4d465b0162f74e171e5549b2f061867f344bfbf8aaccd246bf5f2acd697e532a2c7901c920c69429b1a28  flac-1.3.3.tar.xz"