# $Id: PKGBUILD 235430 2015-04-04 08:28:19Z foutrelis $ # Maintainer (Arch): Gaetan Bisson # Contributor (Arch): Alexander Fehr # Contributor (Arch): William Rea # Maintainer (Arch): Gaetan Bisson # Maintainer: Brendan Tildesley # Contributor: Jorge Lopez pkgname=audacious-plugins pkgver=3.6.1 pkgrel=1.parabola1 pkgdesc="Plugins for Audacious, without nonfree plugins" arch=('i686' 'x86_64' 'mips64el') url="http://audacious-media-player.org/" license=('GPL' 'GPL3' 'LGPL' 'custom:BSD') # Licensing issues: # The plugins 'stereoplugin' and 'wavepack'have no license notice but I've been informed by an upstream dev, # nenolod, that they are all GPL. I don't know what version. # The plugin 'psf' is under BSD license, mostly, but it uses code from PeOPS, so it's probably GPL. # However, 'psf' is apparently an emulator for running nonfree code, so I'm not rushing to fix it. # # All the other custom licensed plugins I think are mostly modified BSD or ISC. replaces=($pkgname-libre) conflicts=($pkgname-libre) makedepends=("audacious>=$pkgver" 'glib2' 'python2' # for gdbus-codegen 'alsa-lib' 'pulseaudio' 'jack2' 'lame' 'libvorbis' 'flac' 'mpg123' 'faad2' 'ffmpeg' 'libmodplug' 'fluidsynth' 'libcdio-paranoia' 'libsidplayfp' 'wavpack' 'dbus-glib' 'libnotify' 'lirc' 'curl' 'libmtp' 'neon' 'libmms' 'libcue') optdepends=('alsa-lib: Advanced Linux Sound Arch. output' 'pulseaudio: PulseAudio output' 'jack2: Jack Audio Connection Kit output' 'lame: FileWriter MP3 output' 'libvorbis: Vorbis input, FileWriter Vorbis output' 'flac: FLAC input, FileWriter FLAC output' 'mpg123: MP3 input' 'faad2: AAC input' 'ffmpeg: ffaudio input' 'libmodplug: modplug input' 'fluidsynth: MIDI FluidSynth backend input' 'libcdio-paranoia: CD Digital Audio input' 'libsidplayfp: Commodore 64 audio input' 'wavpack: WavPack input' 'dbus-glib: Gnome Shortcuts Plugin' 'libnotify: libnotify OSD' 'lirc: LIRC' 'curl: AudioScrobbler Client' 'libmtp: Upload to MTP device' 'neon: neon-based http transport' 'libmms: libmms-based mms transport' 'libcue: CUE playlist format') source=(http://distfiles.audacious-media-player.org/$pkgname-$pkgver.tar.bz2) sha256sums=('0ae17d573dd094b3124e0bbec0c059c4ca668436830c922eb00f0b7eb9745195') prepare() { cd "$srcdir/$pkgname-$pkgver" # Retrieve upstream & remove plugin 'psf' due to issues mentioned above. rm -rv src/psf # Get license notices out of custom-licensed packages head -n 18 src/albumart/albumart.cc | cut -c 4- | tail -n 17 > $srcdir/LICENSE.albumart head -n 17 src/alsa/alsa.cc | cut -c 4- | tail -n 16 > $srcdir/LICENSE.alsa head -n 17 src/audpl/audpl.cc | cut -c 4- | tail -n 16 > $srcdir/LICENSE.audpl head -n 18 src/cairo-spectrum/cairo-spectrum.cc | cut -c 4- | tail -n 17 > $srcdir/LICENSE.cairo-spectrum head -n 17 src/compressor/compressor.cc | cut -c 4- | tail -n 16 > $srcdir/LICENSE.compressor head -n 17 src/crossfade/crossfade.cc | cut -c 4- | tail -n 16 > $srcdir/LICENSE.crossfade head -n 18 src/crystalizer/crystalizer.cc | cut -c 4- | tail -n 17 > $srcdir/LICENSE.crystalizer head -n 18 src/lyricwiki/lyricwiki.cc | cut -c 4- | tail -n 17 > $srcdir/LICENSE.lyricwiki head -n 19 src/mpg123/mpg123.cc | cut -c 4- | tail -n 18 > $srcdir/LICENSE.mpg123 head -n 17 src/mpris2/plugin.cc | cut -c 4- | tail -n 16 > $srcdir/LICENSE.mpris2 head -n 17 src/resample/resample.cc | cut -c 4- | tail -n 16 > $srcdir/LICENSE.resample head -n 18 src/voice_removal/voice_removal.cc | cut -c 4- | tail -n 17 > $srcdir/LICENSE.voice_removal head -n 25 src/xsf/corlett.cc | cut -c 2- | tail -n 23 > $srcdir/LICENSE.xfs } build() { cd "$srcdir/$pkgname-$pkgver" ./configure \ --prefix=/usr \ --enable-amidiplug \ --disable-adplug \ --disable-psf \ make } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" install -m644 $srcdir/LICENSE.* "$pkgdir/usr/share/licenses/$pkgname" }