summaryrefslogtreecommitdiff
path: root/libre/audacity-libre/PKGBUILD
blob: 01a5bb944a6a14bc69a475bd719c8a00dd766ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# $Id: PKGBUILD 153455 2012-03-14 17:15:15Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>
# Contributor (Parabola): André Silva <andre.paulista@adinet.com.uy>

_pkgname=audacity
pkgname=audacity-libre
pkgver=2.0.0
pkgrel=1
pkgdesc="A program that lets you manipulate digital audio waveforms, libre"
arch=('i686' 'x86_64' 'mips64el')
url="http://audacity.sourceforge.net/"
license=('GPL')
depends=('libmad' 'libid3tag' 'wxgtk' 'lame-libre' 'hicolor-icon-theme'
	 'desktop-file-utils' 'jack' 'soundtouch' 'ffmpeg')
options=('!makeflags')
install=audacity-libre.install
source=(http://audacity.googlecode.com/files/${_pkgname}-minsrc-${pkgver}.tar.bz2
	remove-unfree-nyquist.patch
	audacity-libre.install)
sha1sums=('0175474e63c51aaa97df9b45574f7f307f1d3bc8'
          'cda4587458aecf15c41102f86c3b466f80acd0f3'
          '59e511af919f62b07dd62bab251c56bef6344d70')
provides=("audacity=$pkgver")
replaces=('audacity')
conflicts=('audacity')

build() {
  cd "${srcdir}/${_pkgname}-src-${pkgver}"

# Removing nyquist
        rm -rfv {,lib-src/lib}nyquist
        find -iname '*nyquist*' -print0 | xargs -0 \
            rm -rfv 
        patch -Np0 -i ../remove-unfree-nyquist.patch || return 1

  WX_CONFIG=/usr/bin/wx-config ./configure --prefix=/usr \
    --with-portaudio --with-libsamplerate \
    --without-libresample --with-libmad \
    --with-ffmpeg --with-id3tag --with-libflac \
    --with-vorbis --with-libexpat \
    --with-libsndfile --with-soundtouch \
    --enable-unicode --without-taglib \
    --disable-nyquist #unfree
  make
}

package() {
  cd "${srcdir}/${_pkgname}-src-${pkgver}"
  make DESTDIR="${pkgdir}" install
}