diff options
Diffstat (limited to 'libre')
-rw-r--r-- | libre/audacity-libre/PKGBUILD | 58 | ||||
-rw-r--r-- | libre/audacity-libre/audacity-libre.install | 13 | ||||
-rw-r--r-- | libre/audacity-libre/remove-unfree-nyquist.patch | 24 |
3 files changed, 95 insertions, 0 deletions
diff --git a/libre/audacity-libre/PKGBUILD b/libre/audacity-libre/PKGBUILD new file mode 100644 index 000000000..a0c1b154d --- /dev/null +++ b/libre/audacity-libre/PKGBUILD @@ -0,0 +1,58 @@ +# $Id$ +# Maintainer: Joseph Yaworski <jy@dervormund.info> + +pkgname=audacity-libre +pkgver=1.3.13 +pkgrel=1 +pkgdesc="A program that lets you manipulate digital audio waveforms, libre" +arch=('i686' 'x86_64') +url="http://audacity.sourceforge.net/" +license=('GPL') +depends=('libvorbis' 'libmad' 'libid3tag' 'wxgtk' 'libsamplerate' 'lame' 'hicolor-icon-theme' + 'shared-mime-info' 'desktop-file-utils' 'redland' 'jack' 'soundtouch') +makedepends=('zip') +options=('!makeflags') +install=audacity-libre.install +source=(http://repo.parabolagnulinux.org/other/${pkgname}-minsrc-${pkgver}-beta.tar.bz2 + remove-unfree-nyquist.patch + audacity-libre.install) +provides=("audacity=$pkgver") +replaces=('audacity') +conflicts=('audacity') + +# source PKGBUILD; mksource +mksource() { + wget http://audacity.googlecode.com/files/audacity-minsrc-${pkgver}-beta.tar.bz2 -O - | \ + tar -jxvf - + + pushd audacity-src-${pkgver}-beta/ + rm -rfv {,lib-src/lib}nyquist + find -iname '*nyquist*' -print0 | xargs -0 \ + rm -rfv + patch -Np0 -i ../remove-unfree-nyquist.patch || return 1 + popd + + mv audacity-src-${pkgver}-beta/ ${pkgname}-src-${pkgver}-beta/ + tar -cjf ${pkgname}-minsrc-${pkgver}-beta.tar.bz2 ${pkgname}-src-${pkgver}-beta/ +} + +build() { + cd "${srcdir}/${pkgname}-src-${pkgver}-beta" + WX_CONFIG=/usr/bin/wx-config ./configure --prefix=/usr \ + --with-portaudio --with-libsamplerate \ + --without-libresample --with-libmad \ + --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}-beta" + make DESTDIR="${pkgdir}" install +} +md5sums=('0dca3e9b337ff1357b0580bd6de4e3b1' + '7c49dbe048d1f0f1706fd84bbea2fee4' + 'd1942ad63ff1ef27cae2531ee914d5c8') diff --git a/libre/audacity-libre/audacity-libre.install b/libre/audacity-libre/audacity-libre.install new file mode 100644 index 000000000..028c9f62a --- /dev/null +++ b/libre/audacity-libre/audacity-libre.install @@ -0,0 +1,13 @@ +post_install() { + update-desktop-database -q + update-mime-database usr/share/mime &> /dev/null + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} diff --git a/libre/audacity-libre/remove-unfree-nyquist.patch b/libre/audacity-libre/remove-unfree-nyquist.patch new file mode 100644 index 000000000..b2f9f31e3 --- /dev/null +++ b/libre/audacity-libre/remove-unfree-nyquist.patch @@ -0,0 +1,24 @@ +--- Makefile.in.orig 2011-07-01 13:27:11.000000000 -0300 ++++ Makefile.in 2011-07-01 13:27:39.000000000 -0300 +@@ -41,12 +41,6 @@ install: audacity $(EXTRAINSTALLTARGETS) + $(INSTALL) -m 644 help/audacity.1.gz \ + $(DESTDIR)$(MANDIR)/man1/$(AUDACITY_NAME).1.gz + +- # install nyquist +- $(INSTALL) -d $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/nyquist +- $(INSTALL) -m 644 nyquist/*.lsp nyquist/nyquist-plot.txt $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/nyquist +- $(INSTALL) -d $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/nyquist/rawwaves +- $(INSTALL) -m 644 nyquist/rawwaves/*.raw $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/nyquist/rawwaves +- + # install plug-ins + $(INSTALL) -d $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/plug-ins + $(INSTALL) -m 644 plug-ins/*.ny $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/plug-ins +@@ -103,8 +97,6 @@ uninstall: $(EXTRAUNINSTALLTARGETS) + rm -rf $(DESTDIR)$(DATADIR)/doc/$(AUDACITY_NAME) + # remove man page + rm -rf $(DESTDIR)$(MANDIR)/man1/$(AUDACITY_NAME).1.gz +- # remove nyquist +- rm -rf $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/nyquist + # remove plug-ins + rm -rf $(DESTDIR)$(DATADIR)/$(AUDACITY_NAME)/plug-ins + # remove locales |