upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / xmms2 / repos / community-x86_64 / PKGBUILD
blob0c1096110a6e4d797b6288cc191972528f148779
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>
10 pkgname=xmms2
11 pkgver=0.9.3
12 pkgrel=1
13 pkgdesc='X-platform Music Multiplexing System 2'
14 arch=(x86_64)
15 url='https://xmms2.org/'
16 license=(GPL LGPL)
17 _depends=('alsa-lib: ALSA output'
18           'avahi: announce xmms2d via bonjour/mDNS/zeroconf'
19           'boost: C++ bindings'
20           'curl: play HTTP streams'
21           'cython: Python bindings'
22           'faad2: AAC support'
23           'ffmpeg: WMA, avcodec & avformat support'
24           'fftw: visualization'
25           'flac: FLAC support'
26           'fluidsynth: MIDI support'
27           'jack: JACK output'
28           'libao: libao output'
29           'libcdio-paranoia: CDDA support'
30           'libdiscid: CDDA support'
31           'libgme: support for various video game music formats'
32           'libmad: MP3 support'
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'
41           'mac: APE support'
42           'mpg123: alternative MP3 support'
43           'opusfile: Opus support'
44           'perl: Perl bindings'
45           'ruby: Ruby bindings'
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
53         tmpfiles.conf
54         sysusers.conf
55         system.service
56         user.service)
57 sha256sums=('fe24798db2e6cd8d8eb131ee9800d211525ffebe561c1c5c057710cd7b90a81b'
58             '13e3e2720e21d048d776156f8ab17c40d05b70437823da00b3c4cc2e7f7ecf7f'
59             'a37e35dedd48fb8fbc2c97d79be8a3d3c3b00191826f6046f730f649cd67812a'
60             'a159b18c5959cfe76ca87990ff6879d082bfe9a4c6d674c493461f7f2781f348'
61             '76f1a06b81cec0f5942430401998f6c8cd9cb95d798f97b854f88afd73ffe61d')
63 build() {
64   cd xmms2-$pkgver
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
72   waf build
75 package() {
76   cd xmms2-$pkgver
77   waf --destdir="$pkgdir" install
79   cd "$srcdir"
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"