#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com pkgname=musepack-tools pkgver=475 zenver=72 pkgrel=1 arch=i486 source=("http://files.musepack.net/source/musepack_src_r$pkgver.tar.gz" \ "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/ap/$pkgname/math.patch") sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/ap/$pkgname docs=("authors" "copying" "ChangeLog" "credits" "manifest" "readme" "todo") url=http://www.musepack.net/ options=('norequiredbuilder' 'noautodotnew') extradepends=("libcuefile" "libreplaygain") slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "Musepack tools - tools for .mpc files" "The musepack-tools package contains several basic tools for working" "with compressed audio files in the musepack (.mpc) format:" "* mppenc (an .mpc encoder)," "* mppdec (a command line decoder for .mpc files)" "and * replaygain (a replaygain calculator for .mpc files) " ) build() { cd $startdir/src/musepack_src_r$pkgver patch -p1 < ../math.patch cmake . -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_SKIP_RPATH=ON make || return 1 make install DESTDIR=$startdir/pkg for bin in chap cut dec enc gain 2sv8; do install -Dm755 mpc$bin/mpc$bin "$startdi/pkg/usr/bin/mpc$bin" done }