PKGBUILDs/extra/mpd/PKGBUILD

97 lines
4.3 KiB
Bash
Raw Normal View History

2020-09-04 13:13:42 +00:00
# Maintainer: David Runge <dvzrv@archlinux.org>
2021-01-23 02:47:05 +00:00
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
2020-09-04 13:13:42 +00:00
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Angel Velasquez <angvp@archlinux.org>
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Damir Perisa <damir.perisa@bluewin.ch>
# Contributor: Ben <ben@benmazer.net>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - set b_lto=false in meson arguments
pkgname=mpd
2021-01-21 23:00:56 +00:00
pkgver=0.22.4
2021-01-23 02:47:05 +00:00
pkgrel=2
2020-09-04 13:13:42 +00:00
pkgdesc="Flexible, powerful, server-side application for playing music"
url="https://www.musicpd.org/"
license=('GPL2')
arch=('x86_64')
2020-10-21 13:49:20 +00:00
depends=('bzip2' 'chromaprint' 'gcc-libs' 'glibc' 'lame' 'libcdio'
2020-09-04 13:13:42 +00:00
'libcdio-paranoia' 'libgcrypt' 'libgme' 'libmad' 'libmms' 'libmodplug'
2020-10-02 01:40:08 +00:00
'libmpcdec' 'libnfs' 'libshout' 'libsidplayfp' 'libsoxr' 'openal' 'opus'
2021-01-21 23:00:56 +00:00
'smbclient' 'sqlite' 'wavpack' 'wildmidi' 'zlib' 'zziplib')
2020-10-21 13:49:20 +00:00
makedepends=('alsa-lib' 'audiofile' 'avahi' 'boost' 'curl' 'dbus' 'expat'
'faad2' 'ffmpeg' 'flac' 'fluidsynth' 'icu' 'jack' 'libao' 'libid3tag'
'libmikmod' 'libmpdclient' 'libogg' 'libpulse' 'libsamplerate' 'libsndfile'
'libupnp' 'liburing' 'libvorbis' 'meson' 'mpg123' 'python-sphinx'
2021-01-21 23:00:56 +00:00
'systemd-libs' 'twolame' 'yajl')
2020-09-04 13:13:42 +00:00
backup=("etc/${pkgname}.conf")
2020-10-21 13:49:20 +00:00
source=("https://www.musicpd.org/download/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"{,.sig}
2020-09-04 13:13:42 +00:00
"${pkgname}.conf"
"${pkgname}.sysusers"
"${pkgname}.tmpfiles")
2021-01-21 23:00:56 +00:00
sha512sums=('e169d6656b378d52798e822ffd47f554bd7c076ca8bc5a1119e3b2fad36bee79335dc392aa8d78d854689af62168625698c1777440e08a67075099898ee5fe34'
2020-09-04 13:13:42 +00:00
'SKIP'
'25a823740d92da8e186916701413114142eb6ad91a172c592e68b569c8e4f50fa99580e555ccf6cd31fc4f55a09bfe0278efa46e4e76ee0fe02846292fadf3c1'
'6e467481406279767b709ec6d5c06dbd825c0de09045c52ffa2d21d0604dcfe19b7a92bf42bed25163d66a3a0d1dbde6185a648b433eaf5eac56be90491e2e18'
'db473db27cd68994c3ee26e78e0fb34d13126301d8861563dcc12a22d62ecb14c4ffb1e0798c6aaccdff34e73bae3fbeeff7b42606c901a2d35e278865cdf35d')
2021-01-21 23:00:56 +00:00
b2sums=('d8060a205f94fa369ad8aee7a3e12f1389e7587aac7843eeec6ab3e6b39c2e063cfd5413bc7c9738ce6c68c56d3befefd48112c1c93f725a6940ff1889d882e6'
2020-09-04 13:13:42 +00:00
'SKIP'
'0969a3c477b6a3f34b44e067e515d7f306414dd14e0163584417b9d071e3cc825898219f7ff66ead7905b15429b8411304052d3b2b14a72e560bfabf9bf0adcf'
'4ab6e415284c77802a39d0913d701fe55e56f3c22b19557661fbef77e456b5e1d151da4202695282b956602e716a7afdb994aa2fc17368b9a0d0d051d47a3afb'
'd7b587c25dd5830c27af475a8fdd8102139d7c8fdd6f04fe23b36be030e4411582e289f575c299255ff8183096f7d47247327276f9a24641cbd032d9675b837a')
validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512') # Max Kellermann <max@blarg.de>
prepare() {
cd "${pkgname}-${pkgver}"
sed -e '/\[Service\]/a User=mpd' \
-i "systemd/system/mpd.service.in"
}
build() {
cd "${pkgname}-${pkgver}"
# NOTE: sndio conflicts with alsa
# TODO: package adplug
# TODO: package shine
meson --prefix /usr \
--libexecdir lib \
--sbindir bin \
--buildtype plain \
--auto-features enabled \
--wrap-mode nodownload \
-D b_lto=false \
-D b_pie=true \
2020-10-02 01:40:08 +00:00
-D documentation=enabled \
2020-09-04 13:13:42 +00:00
-D adplug=disabled \
-D sndio=disabled \
-D shine=disabled \
-D tremor=disabled \
build
ninja -C build
}
check() {
cd "${pkgname}-${pkgver}"
ninja -C build test
}
package() {
2021-01-23 02:47:05 +00:00
depends+=('libbz2.so' 'libFLAC.so' 'libao.so' 'libasound.so' 'libaudiofile.so'
2020-09-04 13:13:42 +00:00
'libavahi-client.so' 'libavahi-common.so' 'libavcodec.so' 'libavformat.so'
2020-10-21 13:49:20 +00:00
'libavutil.so' 'libcurl.so' 'libdbus-1.so' 'libexpat.so' 'libfaad.so'
'libfluidsynth.so' 'libicui18n.so' 'libicuuc.so' 'libid3tag.so' 'libjack.so'
'libmikmod.so' 'libmpdclient.so' 'libmpg123.so' 'libogg.so' 'libpulse.so'
'libsamplerate.so' 'libsndfile.so' 'libsystemd.so' 'libtwolame.so'
2021-01-21 23:00:56 +00:00
'libupnp.so' 'liburing.so' 'libvorbis.so' 'libvorbisenc.so' 'libyajl.so')
2020-09-04 13:13:42 +00:00
cd "${pkgname}-${pkgver}"
DESTDIR="${pkgdir}" ninja -C build install
install -vDm 644 "doc/${pkgname}conf.example" \
-t "${pkgdir}/usr/share/doc/${pkgname}/"
install -vDm 644 "../${pkgname}.conf" -t "${pkgdir}/etc/"
install -vDm 644 "../${pkgname}.sysusers" "${pkgdir}/usr/lib/sysusers.d/${pkgname}.conf"
install -vDm 644 "../${pkgname}.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/${pkgname}.conf"
}
2021-01-23 02:47:05 +00:00
# vim: ts=2 sw=2 et: