desktop/mpd/PKGBUILD

50 lines
1.8 KiB
Bash
Raw Normal View History

2013-12-14 00:51:55 +08:00
pkgname=mpd
2018-02-11 09:26:11 +08:00
pkgver=0.20.16
pkgrel=3
2013-12-14 00:51:55 +08:00
pkgdesc='Flexible, powerful, server-side application for playing music'
2017-01-05 07:01:35 +08:00
url='https://www.musicpd.org/'
2013-12-14 00:51:55 +08:00
license=('GPL')
arch=('x86_64')
2015-05-19 06:55:04 +08:00
depends=('audiofile' 'avahi' 'curl' 'faad2' 'ffmpeg' 'jack' 'libao' 'libid3tag'
'libmad' 'libmms' 'libmodplug' 'libpulse' 'libshout' 'sqlite3' 'wavpack'
'libmpdclient' 'yajl' 'opus' 'libbluray' 'libgme' 'icu' 'libupnp' 'libnfs'
2017-05-16 22:17:33 +08:00
'x264' 'smbclient' 'libcdio-paranoia' 'fluidsynth' 'mpg123' 'libmpcdec'
'wildmidi' 'twolame' 'openal')
2014-12-03 08:01:57 +08:00
makedepends=('boost' 'doxygen')
2017-01-05 07:01:35 +08:00
source=("https://www.musicpd.org/download/mpd/0.20/${pkgname}-${pkgver}.tar.xz"
2015-05-19 06:55:04 +08:00
'tmpfiles.d'
2013-12-14 00:51:55 +08:00
'mpd.conf')
backup=('etc/mpd.conf')
install=install
2018-02-11 09:26:11 +08:00
sha256sums=('29e1676288e61a8bee6b687d23ba6ca42ccec4dc87c6a0e81d119aea27dcd06a'
2015-10-29 07:29:09 +08:00
'c1683ba35774c85e16c70e89f7e2ed1c09619512b1a273daabbd5e34d40439bd'
'f40f68205834ca53cea3372e930bfe6c2f9ecc9df3b1605df2fec63a658b2e03')
2013-12-14 00:51:55 +08:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--sysconfdir=/etc \
2015-05-19 06:55:04 +08:00
--enable-libmpdclient \
2013-12-14 00:51:55 +08:00
--enable-jack \
--enable-soundcloud \
2015-05-19 06:55:04 +08:00
--enable-pipe-output \
2013-12-14 00:51:55 +08:00
--enable-pulse \
--disable-sidplay \
2015-05-19 06:55:04 +08:00
--with-systemdsystemunitdir=/usr/lib/systemd/system
2013-12-14 00:51:55 +08:00
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
2013-12-14 00:51:55 +08:00
install -d -g 45 -o 45 "${pkgdir}"/var/lib/mpd/playlists
2015-05-19 06:55:04 +08:00
install -Dm644 ../mpd.conf "${pkgdir}"/etc/mpd.conf
install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/mpd.conf
2014-04-13 18:32:51 +08:00
install -Dm644 "${pkgdir}"/usr/lib/systemd/{system,user}/mpd.service
2015-05-19 06:55:04 +08:00
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
2013-12-14 00:51:55 +08:00
}