# Description: A program that lets you manipulate digital audio waveforms
# URL: http://web.audacityteam.org/
# Packager: Chris Farrell, timcowchip at gmail dot com
# Maintainer: Chris Farrell, timcowchip at gmail dot com
# Depends on: libvorbis libmad libid3tag wxgtk28 lame hicolor-icon-theme ffmpeg shared-mime-info desktop-file-utils redland jack soundtouch cmake zip python

name=audacity
version=2.1.1
release=1
source=("https://github.com/audacity/audacity/archive/Audacity-${version}.tar.gz"
        'ffmpeg.patch')
build() {

  cd "${SRC}/${name}-Audacity-${version}"
  patch -p1 -i "${SRC}/ffmpeg.patch"

  WX_CONFIG=/usr/bin/wx-config-2.8 \
  ./configure --prefix=/usr --enable-unicode --with-wx-config=$WX_CONFIG

  make
 
  make DESTDIR="${PKG}" install
}
