1 # Maintainer: Alexander F. Rødseth <xyproto@archlinux.org>
2 # Contributor: Storm Dragon <stormdragon2976@gmail.com>
3 # Contributor: Aaron 'venisonslurpee' Laursen <venisonslurpee@gmail.com>
4 # Contributor: Christopher Rosell <chrippa@tanuki.se>
5 # Contributor: lh <jarryson@gmail.com>
6 # Contributor: Sebastian Schwarz <seschwar@gmail.com>
7 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
8 # Contributor: Xilon <xilon@gmail.com>
13 pkgdesc='X-platform Music Multiplexing System 2'
15 url='https://xmms2.org/'
17 _depends=('alsa-lib: ALSA output'
18 'avahi: announce xmms2d via bonjour/mDNS/zeroconf'
20 'curl: play HTTP streams'
21 'cython: Python bindings'
23 'ffmpeg: WMA, avcodec & avformat support'
26 'fluidsynth: MIDI support'
29 'libcdio-paranoia: CDDA support'
30 'libdiscid: CDDA support'
31 'libgme: support for various video game music formats'
33 'libmms: play MMS streams'
34 'libmodplug: MOD support'
35 'libmpcdec: Musepack support'
36 'libofa: MusicDNS fingerprinting'
37 'libsamplerate: vocoder support'
38 'libshout: Icecast output'
39 'libvorbis: Ogg Vorbis support'
40 'libxml2: XSPF and podcast support'
42 'mpg123: alternative MP3 support'
43 'opusfile: Opus support'
46 'smbclient: direct CIFS/SMB access'
47 'speex: Speex support'
48 'sqlite: for sqlite2s4'
49 'wavpack: WavPack support')
50 makedepends=("${_depends[@]%%:*}" git libpulse perl-pod-parser waf)
51 optdepends=("${_depends[@]}" 'pulseaudio: PulseAudio output')
52 source=(https://github.com/xmms2/xmms2-devel/releases/download/$pkgver/$pkgname-$pkgver.tar.xz
57 sha256sums=('fe24798db2e6cd8d8eb131ee9800d211525ffebe561c1c5c057710cd7b90a81b'
58 '13e3e2720e21d048d776156f8ab17c40d05b70437823da00b3c4cc2e7f7ecf7f'
59 'a37e35dedd48fb8fbc2c97d79be8a3d3c3b00191826f6046f730f649cd67812a'
60 'a159b18c5959cfe76ca87990ff6879d082bfe9a4c6d674c493461f7f2781f348'
61 '76f1a06b81cec0f5942430401998f6c8cd9cb95d798f97b854f88afd73ffe61d')
65 export LINKFLAGS="$LDFLAGS"
66 waf configure --prefix=/usr --sbindir=/usr/bin --without-ldconfig \
67 --with-ruby-archdir=`ruby -e 'puts RbConfig::CONFIG["vendorarchdir"]'` \
68 --with-ruby-libdir=`ruby -e 'puts RbConfig::CONFIG["vendorlibdir"]'` \
69 --with-perl-archdir=`perl -V:installvendorarch | cut -f2 -d\'` \
70 --with-optionals=launcher,xmmsclient++,xmmsclient++-glib,perl,ruby,nycli,pixmaps,et,mdns,medialib-updater,sqlite2s4 \
71 --without-optionals=python
77 waf --destdir="$pkgdir" install
80 install -Dm644 sysusers.conf "$pkgdir/usr/lib/sysusers.d/xmms2.conf"
81 install -Dm644 tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/xmms2.conf"
82 install -Dm644 system.service "$pkgdir/usr/lib/systemd/system/xmms2d.service"
83 install -Dm644 user.service "$pkgdir/usr/lib/systemd/user/xmms2d.service"