aboutsummaryrefslogblamecommitdiffstats
path: root/community/audacity/APKBUILD
blob: 9f36f3113105c47c146e90a19e0db597598b0a37 (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                    

            
                                 
                                   
          

                          










                      
                      

                  




                  
         
                                        
                                                                            
         
 
                                            
 




                       
         

                   
                          

                                                  
            
 


















                                            
            


           
                                      

 
                                                                                                                                                                    
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=audacity
pkgver=2.3.2
pkgrel=0
pkgdesc="Multitrack audio editor"
url="https://www.audacityteam.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	alsa-lib-dev
	bash
	expat-dev
	flac-dev
	jack-dev
	lame-dev
	libid3tag-dev
	libmad-dev
	libogg-dev
	libsndfile-dev
	libvorbis-dev
	soundtouch-dev
	soxr-dev
	taglib-dev
	wxgtk3-dev
	ffmpeg-dev
	automake
	autoconf
	libtool
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://github.com/audacity/audacity/archive/Audacity-$pkgver.tar.gz
	"

builddir="$srcdir"/audacity-Audacity-$pkgver

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	local _arch

	case "$CTARGET" in
		x86|x86_64) _arch="--enable-sse";;
		*) _arch="--disable-sse";;
	esac

	WX_CONFIG=wx-config-gtk3 \
	bash configure \
		--prefix="/usr" \
		--with-libsndfile="system" \
		--with-ffmpeg="system" \
		--with-expat="system" \
		--with-lame="system" \
		--with-libsoxr="system" \
		--with-portaudio \
		--with-portmidi \
		--with-libflac \
		--with-libid3tag \
		--with-libsamplerate \
		--with-sbsms \
		--with-soundtouch \
		--with-libtwolame \
		--with-libvorbis \
		--without-lv2 \
		$_arch
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="a59d6e9e974d5f78f5ca561e3bea31fc1b3e88f9ea60b2df7ce8bcec264d886f3fdc8f20030e11a86daff8ffeb735850b5e5f73c45fbef0bfcc58692423e7cd0  Audacity-2.3.2.tar.gz"