mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 18:42:12 +08:00
72 lines
2.7 KiB
Bash
72 lines
2.7 KiB
Bash
# Contributions from Arch:
|
|
# Maintainer: 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>
|
|
|
|
pkgname=mpd
|
|
pkgver=0.21.1
|
|
_mainver=0.21
|
|
pkgrel=1
|
|
pkgdesc='Flexible, powerful, server-side application for playing music'
|
|
url='https://www.musicpd.org/'
|
|
license=('GPL')
|
|
arch=('x86_64')
|
|
depends=('audiofile' 'avahi' 'curl' 'faad2' 'ffmpeg' 'fluidsynth' 'icu' 'jack'
|
|
'libao' 'libcdio-paranoia' 'libgme' 'libid3tag' 'libmad' 'libmikmod'
|
|
'libmms' 'libmodplug' 'libmpcdec' 'libmpdclient' 'libnfs'
|
|
'libsamplerate' 'libshout' 'libsoxr' 'libsystemd' 'libupnp' 'mpg123'
|
|
'openal' 'smbclient' 'sqlite' 'twolame' 'wavpack' 'wildmidi' 'yajl'
|
|
'zziplib')
|
|
makedepends=('boost' 'meson' 'python3-sphinx')
|
|
validpgpkeys=('0392335A78083894A4301C43236E8A58C6DB4512')
|
|
source=("https://www.musicpd.org/download/${pkgname}/${_mainver}/${pkgname}-${pkgver}.tar.xz"{,.sig}
|
|
'tmpfiles.d'
|
|
'sysusers.d'
|
|
'conf')
|
|
sha256sums=('5674e791a6f3687a312431fd7e14d9d27fc62e21b869ff6b522bf6ba1bb5c069'
|
|
'SKIP'
|
|
'2faa85c12449a5b3ca422ff1c1fa06d057c7e262a74bfa6298c914a92d6f2e7a'
|
|
'0b74c6e5db08daab3091dc15a6b0c75210ba2f9e98fa074f6cfd605a461056b6'
|
|
'f40f68205834ca53cea3372e930bfe6c2f9ecc9df3b1605df2fec63a658b2e03')
|
|
|
|
backup=('etc/mpd.conf')
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
rm -fr build
|
|
install -d build
|
|
}
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}/build"
|
|
_opts=('-Ddocumentation=true'
|
|
'-Dchromaprint=disabled' # appears not to be used for anything
|
|
'-Dsidplay=disabled' # unclear why but disabled in the past
|
|
'-Dlibwrap=disabled' # twentieth century's over
|
|
'-Dadplug=disabled' # not in an official repo
|
|
'-Dsndio=disabled' # interferes with detection of alsa devices
|
|
'-Dshine=disabled' # not in an official repo
|
|
)
|
|
chakra-meson .. ${_opts[@]}
|
|
ninja
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}/build"
|
|
DESTDIR="${pkgdir}" ninja install
|
|
install -Dm644 ../doc/mpdconf.example "${pkgdir}"/usr/share/doc/mpd/mpdconf.example
|
|
install -Dm644 ../doc/mpd.conf.5 "${pkgdir}"/usr/share/man/man5/mpd.conf.5
|
|
install -Dm644 ../doc/mpd.1 "${pkgdir}"/usr/share/man/man1/mpd.1
|
|
|
|
install -Dm644 ../../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/mpd.conf
|
|
install -Dm644 ../../sysusers.d "${pkgdir}"/usr/lib/sysusers.d/mpd.conf
|
|
install -Dm644 ../../conf "${pkgdir}"/etc/mpd.conf
|
|
|
|
sed \
|
|
-e '/\[Service\]/a User=mpd' \
|
|
-e '/WantedBy=/c WantedBy=default.target' \
|
|
-i "${pkgdir}"/usr/lib/systemd/system/mpd.service
|
|
}
|