mpd: update to 0.18.12.

This commit is contained in:
Juan RP 2014-07-31 08:29:05 +02:00
parent 21999aa8d9
commit 22fad72e1f
1 changed files with 23 additions and 21 deletions

View File

@ -1,12 +1,11 @@
# Template file for 'mpd' # Template file for 'mpd'
pkgname=mpd pkgname=mpd
version=0.18.11 version=0.18.12
revision=3 revision=1
build_style=gnu-configure build_style=gnu-configure
configure_args=" configure_args="
--enable-soundcloud --enable-pipe-output --disable-twolame-encoder --enable-soundcloud --enable-pipe-output --disable-twolame-encoder
--disable-sidplay --with-systemdsystemunitdir=/usr/lib/systemd/system --disable-sidplay --enable-bzip2 --enable-zzip"
--enable-bzip2 --enable-zzip LDFLAGS="
hostmakedepends="pkg-config" hostmakedepends="pkg-config"
makedepends=" makedepends="
ffmpeg-devel>=2.1 libmodplug-devel libmad-devel libcurl-devel faad2-devel ffmpeg-devel>=2.1 libmodplug-devel libmad-devel libcurl-devel faad2-devel
@ -16,7 +15,6 @@ makedepends="
libcdio-devel zziplib-devel libmpdclient-devel" libcdio-devel zziplib-devel libmpdclient-devel"
conf_files="/etc/mpd.conf" conf_files="/etc/mpd.conf"
system_accounts="mpd" system_accounts="mpd"
systemd_services="mpd.service on"
mpd_homedir="/var/lib/mpd" mpd_homedir="/var/lib/mpd"
make_dirs="/var/lib/mpd/playlists 0755 mpd mpd" make_dirs="/var/lib/mpd/playlists 0755 mpd mpd"
short_desc="Flexible, powerful, server-side application for playing music" short_desc="Flexible, powerful, server-side application for playing music"
@ -24,21 +22,7 @@ maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3" license="GPL-3"
homepage="http://www.musicpd.org/" homepage="http://www.musicpd.org/"
distfiles="http://www.musicpd.org/download/mpd/${version%.*}/mpd-${version}.tar.xz" distfiles="http://www.musicpd.org/download/mpd/${version%.*}/mpd-${version}.tar.xz"
checksum=f0466a92008ba1a030aebef7ee3cf23f3a56a5764aa36f3a4058d2f336df2ad7 checksum=30cd1f6f396a6433f7f27a6c0ec0de5e061cec6ad1bd2f7de9095c16aac0d86c
post_install() {
vinstall doc/mpdconf.example 644 etc mpd.conf
vinstall ${FILESDIR}/tmpfiles.d 644 usr/lib/tmpfiles.d mpd.conf
vmkdir usr/lib/systemd/user
ln -s ../system/mpd.service ${DESTDIR}/usr/lib/systemd/user/mpd.service
sed \
-e '/^#playlist_directory/c playlist_directory "/var/lib/mpd/playlists"' \
-e '/^#db_file/c db_file "/var/lib/mpd/mpd.db"' \
-e '/^#pid_file/c pid_file "/run/mpd/mpd.pid"' \
-e '/^#state_file/c state_file "/var/lib/mpd/mpdstate"' \
-e '/^#user/c user "mpd"' \
-i ${DESTDIR}/etc/mpd.conf
}
# Package build options # Package build options
build_options="jack lame mpcdec pulseaudio systemd wavpack" build_options="jack lame mpcdec pulseaudio systemd wavpack"
@ -73,8 +57,9 @@ else
fi fi
if [ "$build_option_systemd" ]; then if [ "$build_option_systemd" ]; then
configure_args+=" --enable-systemd-daemon" configure_args+=" --enable-systemd-daemon --with-systemdsystemunitdir=/usr/lib/systemd/system"
makedepends+=" systemd-devel" makedepends+=" systemd-devel"
systemd_services="mpd.service on"
else else
configure_args+=" --disable-systemd-daemon" configure_args+=" --disable-systemd-daemon"
fi fi
@ -85,3 +70,20 @@ if [ "$build_option_wavpack" ]; then
else else
configure_args+=" --disable-wavpack" configure_args+=" --disable-wavpack"
fi fi
post_install() {
vinstall doc/mpdconf.example 644 etc mpd.conf
sed \
-e '/^#playlist_directory/c playlist_directory "/var/lib/mpd/playlists"' \
-e '/^#db_file/c db_file "/var/lib/mpd/mpd.db"' \
-e '/^#pid_file/c pid_file "/run/mpd/mpd.pid"' \
-e '/^#state_file/c state_file "/var/lib/mpd/mpdstate"' \
-e '/^#user/c user "mpd"' \
-i ${DESTDIR}/etc/mpd.conf
if [ "$build_option_systemd" ]; then
vinstall ${FILESDIR}/tmpfiles.d 644 usr/lib/tmpfiles.d mpd.conf
vmkdir usr/lib/systemd/user
ln -s ../system/mpd.service ${DESTDIR}/usr/lib/systemd/user/mpd.service
fi
}