blob: 632e43020bc02a3e6036f6eca29d1ca1a94c95f8 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
# $Id: PKGBUILD 247928 2015-09-30 17:09:46Z bisson $
# Maintainer (Arch): Gaetan Bisson <bisson@archlinux.org>
# Contributor (Arch): Alexander Fehr <pizzapunk gmail com>
# Contributor (Arch): William Rea <sillywilly@gmail.com>
# Contributor (Arch): Gaetan Bisson <bisson@archlinux.org>
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Brendan Tildesley
# Contributor: Jorge Lopez <jorginho@parabola.nu>
pkgname=audacious-plugins
pkgver=3.6.2
pkgrel=2.parabola1
pkgdesc="Plugins for Audacious, without nonfree plugins"
arch=('i686' 'x86_64')
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=('e7798936249e1601177503d148a3dd59edd289579f3f1667351eb0ba463642e8')
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"
}
# vim:set ts=2 sw=2 et:
|