archrelease: copy trunk to extra-x86_64
[arch-packages.git] / mpd / trunk / PKGBUILD
blobd54d983c26ee4cb5218def7335eff577b3b878e2
1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
3 # Contributor: Gaetan Bisson <bisson@archlinux.org>
4 # Contributor: Angel Velasquez <angvp@archlinux.org>
5 # Contributor: Andrea Scarpino <andrea@archlinux.org>
6 # Contributor: Damir Perisa <damir.perisa@bluewin.ch>
7 # Contributor: Ben <ben@benmazer.net>
9 pkgname=mpd
10 pkgver=0.23.5
11 pkgrel=1
12 pkgdesc="Flexible, powerful, server-side application for playing music"
13 arch=(x86_64)
14 url="https://www.musicpd.org/"
15 license=(GPL2)
16 depends=(bzip2 chromaprint gcc-libs glibc lame libcdio libcdio-paranoia
17 libgcrypt libgme libmad libmms libmodplug libmpcdec libnfs libshout
18 libsidplayfp libsoxr openal opus smbclient sqlite wavpack wildmidi zlib
19 zziplib)
20 makedepends=(alsa-lib audiofile avahi boost curl dbus expat faad2 ffmpeg flac
21 fluidsynth fmt icu jack libao libid3tag libmikmod libmpdclient libogg
22 libopenmpt libpulse libsamplerate libsndfile libupnp liburing libvorbis meson
23 mpg123 pipewire python-sphinx systemd-libs twolame yajl)
24 backup=("etc/${pkgname}.conf")
25 source=("https://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig}
26         "${pkgname}.conf"
27         "${pkgname}.sysusers"
28         "${pkgname}.tmpfiles")
29 sha512sums=('3a870e79bb82c9e8877958d271e933daa3dd970a4510aff4aeea91feab521d7927cd59c7f1ea16a36e84ff879e4f24e4347602ac449c5da31853acb5a3b46f34'
30             'SKIP'
31             '25a823740d92da8e186916701413114142eb6ad91a172c592e68b569c8e4f50fa99580e555ccf6cd31fc4f55a09bfe0278efa46e4e76ee0fe02846292fadf3c1'
32             '6e467481406279767b709ec6d5c06dbd825c0de09045c52ffa2d21d0604dcfe19b7a92bf42bed25163d66a3a0d1dbde6185a648b433eaf5eac56be90491e2e18'
33             'db473db27cd68994c3ee26e78e0fb34d13126301d8861563dcc12a22d62ecb14c4ffb1e0798c6aaccdff34e73bae3fbeeff7b42606c901a2d35e278865cdf35d')
34 b2sums=('91f0d37bca0632a414083f6ecf8838ba5dc4ef4965692b14e56587d3d145140f61bcc120fe4b2bf83eb41f2a7e085da4d999efc19ca9717d2552d92fc6359c65'
35         'SKIP'
36         '0969a3c477b6a3f34b44e067e515d7f306414dd14e0163584417b9d071e3cc825898219f7ff66ead7905b15429b8411304052d3b2b14a72e560bfabf9bf0adcf'
37         '4ab6e415284c77802a39d0913d701fe55e56f3c22b19557661fbef77e456b5e1d151da4202695282b956602e716a7afdb994aa2fc17368b9a0d0d051d47a3afb'
38         'd7b587c25dd5830c27af475a8fdd8102139d7c8fdd6f04fe23b36be030e4411582e289f575c299255ff8183096f7d47247327276f9a24641cbd032d9675b837a')
39 validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512') # Max Kellermann <max@blarg.de>
42 prepare() {
43   cd "${pkgname}-${pkgver}"
44   sed -e '/\[Service\]/a User=mpd' \
45       -i "systemd/system/mpd.service.in"
48 build() {
49   cd "${pkgname}-${pkgver}"
50   # NOTE: sndio conflicts with alsa
51   # TODO: package adplug
52   # TODO: package shine
53   arch-meson -D documentation=enabled \
54         -D adplug=disabled \
55         -D sndio=disabled \
56         -D shine=disabled \
57         -D tremor=disabled \
58         -D b_ndebug=true \
59         build
60   ninja -C build
63 check() {
64   cd "${pkgname}-${pkgver}"
65   ninja -C build test
68 package() {
69   depends+=(libbz2.so libFLAC.so libao.so libasound.so libaudiofile.so
70   libavahi-client.so libavahi-common.so libavcodec.so libavformat.so
71   libavutil.so libcurl.so libdbus-1.so libexpat.so libfaad.so libfluidsynth.so
72   libfmt.so libicui18n.so libicuuc.so libid3tag.so libjack.so libmikmod.so
73   libmpdclient.so libmpg123.so libogg.so libopenmpt.so libpipewire-0.3.so
74   libpulse.so libsamplerate.so libsndfile.so libsystemd.so libtwolame.so
75   libupnp.so liburing.so libvorbis.so libvorbisenc.so libyajl.so libavfilter.so
76   libchromaprint.so libixml.so)
78   cd "${pkgname}-${pkgver}"
79   DESTDIR="${pkgdir}" ninja -C build install
80   install -vDm 644 "doc/${pkgname}conf.example" \
81     -t "${pkgdir}/usr/share/doc/${pkgname}/"
82   install -vDm 644 "../${pkgname}.conf" -t "${pkgdir}/etc/"
83   install -vDm 644 "../${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
84   install -vDm 644 "../${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
87 # vim: ts=2 sw=2 et: