# Maintainer: Natanael Copa pkgname=flac pkgver=1.3.2 pkgrel=2 pkgdesc="Free Lossless Audio Codec" url="http://flac.sourceforge.net/" arch="all" license="custom:Xiph LGPL GPL FDL" options="!checkroot" subpackages="$pkgname-dev $pkgname-doc" depends= makedepends="libogg-dev !libiconv" source="http://downloads.xiph.org/releases/flac/flac-${pkgver}.tar.xz CVE-2017-6888.patch" # secfixes: # 1.3.2-r2: # - CVE-2017-6888 builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" 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() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -Dm0644 COPYING.Xiph \ "$pkgdir"/usr/share/licenses/$pkgname/COPYING.Xiph } sha512sums="63910e8ebbe508316d446ffc9eb6d02efbd5f47d29d2ea7864da9371843c8e671854db6e89ba043fe08aef1845b8ece70db80f1cce853f591ca30d56ef7c3a15 flac-1.3.2.tar.xz d2fedee94282a38fecd9c9e0a196966e2b23cc1df13290348bb7841a61aa9e95658e6dda6b8637f78d11a397f076388cbc2a0bf6f15e798882ccf42cc8c6f35c CVE-2017-6888.patch"