mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
50 lines
1.8 KiB
Bash
50 lines
1.8 KiB
Bash
pkgname=mpd
|
|
pkgver=0.20.10
|
|
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' 'jack' 'libao' 'libid3tag'
|
|
'libmad' 'libmms' 'libmodplug' 'libpulse' 'libshout' 'sqlite3' 'wavpack'
|
|
'libmpdclient' 'yajl' 'opus' 'libbluray' 'libgme' 'icu' 'libupnp' 'libnfs'
|
|
'x264' 'smbclient' 'libcdio-paranoia' 'fluidsynth' 'mpg123' 'libmpcdec'
|
|
'wildmidi' 'twolame' 'openal')
|
|
makedepends=('boost' 'doxygen')
|
|
source=("https://www.musicpd.org/download/mpd/0.20/${pkgname}-${pkgver}.tar.xz"
|
|
'tmpfiles.d'
|
|
'mpd.conf')
|
|
backup=('etc/mpd.conf')
|
|
install=install
|
|
sha256sums=('52fbc1125cdba41ba999add2820d45f3ce7cf493006bb04d8f0b2937204d3121'
|
|
'c1683ba35774c85e16c70e89f7e2ed1c09619512b1a273daabbd5e34d40439bd'
|
|
'f40f68205834ca53cea3372e930bfe6c2f9ecc9df3b1605df2fec63a658b2e03')
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--enable-libmpdclient \
|
|
--enable-jack \
|
|
--enable-soundcloud \
|
|
--enable-pipe-output \
|
|
--enable-pulse \
|
|
--disable-sidplay \
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
install -d -g 45 -o 45 "${pkgdir}"/var/lib/mpd/playlists
|
|
install -Dm644 ../mpd.conf "${pkgdir}"/etc/mpd.conf
|
|
install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/mpd.conf
|
|
|
|
install -Dm644 "${pkgdir}"/usr/lib/systemd/{system,user}/mpd.service
|
|
sed '/\[Service\]/a User=mpd' -i "${pkgdir}"/usr/lib/systemd/system/mpd.service
|
|
sed '/WantedBy=/c WantedBy=default.target' -i "${pkgdir}"/usr/lib/systemd/{system,user}/mpd.service
|
|
}
|