# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=wavpack pkgver=4.75.0 pkgrel=0 pkgdesc="Audio compression format with lossless, lossy, and hybrid compression modes" url="http://www.wavpack.com/" arch="all" license="BSD" depends="" makedepends="" install= subpackages="$pkgname-dev $pkgname-doc" source="http://www.wavpack.com/${pkgname}-${pkgver}.tar.bz2" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" local _arch_opts= case "$CARCH" in x86 | x86_64) _arch_opts="--enable-mmx" ;; esac ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-static \ $_arch_opts \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="14e49c65efd0f3b0dea708e176a112d2 wavpack-4.75.0.tar.bz2" sha256sums="c63e5c2106749dc6b2fb4302f2260f4803a93dd6cadf337764920dc836e3af2e wavpack-4.75.0.tar.bz2" sha512sums="57974cf63a19e9733fa3299202c6c5bd74a50374f2e74dac74432fe22b34343b9570282dbb4d3d4fa752927ce2b26e568dbd773b857825217f0da6a4df3848eb wavpack-4.75.0.tar.bz2"