description="Free Lossless Audio Codec similar to MP3" ur="http://flac.sourceforge.net/" packager="spiky " contributors="Pierre,Tnut" makedepends=(libogg) name=flac version=1.4.3 source=(http://downloads.xiph.org/releases/$name/$name-$version.tar.xz) unpack_source() { mkdir $SRC/tarballs for file in ${source[@]}; do case ${file##*/} in $name-$version.tar.xz) echo "Unpacking $(get_filename $file)" bsdtar -p -o -C $SRC -xf $(get_filename $file) ;; *) cp $(get_filename $file) $SRC ;; esac done } build() { cd $name-$version ./configure --prefix=/usr \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --disable-thorough-tests make make DESTDIR=$PKG install rm $PKG/usr/lib/libFLAC{,++}.la }