void-packages/srcpkgs/mpd/template

52 lines
1.9 KiB
Plaintext
Raw Normal View History

2013-08-19 09:02:30 +02:00
# Template file for 'mpd'
pkgname=mpd
2013-10-15 07:00:49 +02:00
version=0.17.6
2013-10-30 07:44:18 +01:00
revision=2
2013-08-19 09:02:30 +02:00
build_style=gnu-configure
2013-10-30 07:46:09 +01:00
configure_args="
--enable-jack --enable-lastfm --enable-soundcloud --enable-pipe-output
2013-08-19 09:02:30 +02:00
--enable-pulse --disable-sidplay --with-systemdsystemunitdir=/usr/lib/systemd/system
--enable-bzip2 --enable-zzip"
hostmakedepends="pkg-config"
2013-10-30 07:44:18 +01:00
makedepends="
ffmpeg-devel>=2.1 libmodplug-devel libmad-devel libcurl-devel faad2-devel
2013-08-19 09:02:30 +02:00
sqlite-devel jack-devel libmms-devel wavpack-devel avahi-glib-libs-devel libid3tag-devel
yajl-devel>=2.0.4 pulseaudio-devel libogg-devel libflac-devel libsoup-devel bzip2-devel
libmikmod-devel libsndfile-devel alsa-lib-devel mpg123-devel libsamplerate-devel
libcdio-devel libmpcdec-devel systemd-devel zziplib-devel"
short_desc="Flexible, powerful, server-side application for playing music"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://www.musicpd.org/"
distfiles="http://www.musicpd.org/download/mpd/${version%.*}/mpd-${version}.tar.xz"
2013-10-15 07:00:49 +02:00
checksum=defd23931bd3f0aaee82a079a0583278e51e25f480509a93bc5f70de7f421906
2013-08-19 09:02:30 +02:00
2013-10-30 07:46:09 +01:00
pre_configure() {
sed 's:AVCODEC_MAX_AUDIO_FRAME_SIZE:192000:g' -i src/decoder/ffmpeg_decoder_plugin.c
}
2013-08-19 09:02:30 +02:00
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
}
mpd_package() {
conf_files="/etc/mpd.conf"
system_accounts="mpd"
systemd_services="mpd.service on"
mpd_homedir="/var/lib/mpd"
make_dirs="/var/lib/mpd/playlists 0755 mpd mpd"
pkg_install() {
vmove all
}
}