mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
42 lines
1.7 KiB
Bash
42 lines
1.7 KiB
Bash
# Maintainer: Manuel Rotter <rotter.manuel@gmail.com>
|
|
|
|
pkgname=mpd
|
|
pkgver=0.14.2
|
|
pkgrel=1
|
|
pkgdesc="Music daemon that plays MP3 and Ogg Vorbis files"
|
|
arch=(arm)
|
|
license=('GPL')
|
|
url="http://musicpd.org"
|
|
depends=('libid3tag' 'libmad' 'audiofile' 'faad2>=2.7' 'libmikmod'
|
|
'alsa-lib' 'libmpcdec>=1.2.5' 'libao' 'libvorbis' 'glib2' 'curl')
|
|
install=mpd.install
|
|
source=(http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.gz
|
|
'mpd')
|
|
md5sums=('64177135f64aca555887ba378de8cdfb' 'b1fd15de359db08e4b9ae4b199640f0e')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--disable-jack \
|
|
--enable-ao --enable-mod \
|
|
--with-zeroconf=no \
|
|
--disable-ffmpeg
|
|
make || return 1
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
# set ours dirs in mpd.conf file
|
|
sed -i 's|music_directory.*$|#music_directory "path_to_your_music_collection"|1' doc/mpdconf.example
|
|
sed -i 's|playlist_directory.*$|playlist_directory "/var/lib/mpd/playlists"|1' doc/mpdconf.example
|
|
sed -i 's|db_file.*$|db_file "/var/lib/mpd/mpd.db"|1' doc/mpdconf.example
|
|
sed -i 's|log_file.*$|log_file "/var/log/mpd/mpd.log"|1' doc/mpdconf.example
|
|
sed -i 's|error_file.*$|error_file "/var/log/mpd/mpd.error"|1' doc/mpdconf.example
|
|
sed -i 's|#pid_file.*$|pid_file "/var/run/mpd/mpd.pid"|1' doc/mpdconf.example
|
|
sed -i 's|#state_file.*$|state_file "/var/lib/mpd/mpdstate"|1' doc/mpdconf.example
|
|
sed -i 's|#user.*$|user "mpd"|1' doc/mpdconf.example
|
|
|
|
install -Dm644 doc/mpdconf.example ${pkgdir}/etc/mpd.conf.example || return 1
|
|
|
|
install -D ${srcdir}/mpd ${pkgdir}/etc/rc.d/mpd || return 1
|
|
install -d ${pkgdir}/var/lib/mpd/playlists ${pkgdir}/var/log/mpd ${pkgdir}/var/run/mpd
|
|
}
|