mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-16 08:00:25 +08:00
75 lines
2.5 KiB
Bash
75 lines
2.5 KiB
Bash
#
|
|
# Apps packages for Chakra, part of www.chakra-project.org
|
|
#
|
|
# Maintainer: H W Tovetjärn (totte) <totte@tott.es>
|
|
# Contributors: (SteveK) <stevekej@gmail.com>
|
|
# Gaetan Bisson <bisson@archlinux.org>
|
|
# Angel Velasquez <angvp@archlinux.org>
|
|
# Andrea Scarpino <andrea@archlinux.org>
|
|
# Damir Perisa <damir.perisa@bluewin.ch>
|
|
# Ben <ben@benmazer.net>
|
|
|
|
pkgname=mpd
|
|
pkgver=0.17.3
|
|
pkgrel=1
|
|
pkgdesc='Flexible, powerful, server-side application for playing music'
|
|
url='http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki'
|
|
license=('GPL')
|
|
arch=('i686' 'x86_64')
|
|
depends=('audiofile'
|
|
'avahi'
|
|
'curl'
|
|
'faad2'
|
|
'ffmpeg'
|
|
'jack'
|
|
'libao'
|
|
'libid3tag'
|
|
'libmad'
|
|
'libmms'
|
|
'libmodplug'
|
|
'libmpcdec'
|
|
'libpulse'
|
|
'libshout'
|
|
'sqlite3'
|
|
'wavpack')
|
|
makedepends=('doxygen')
|
|
source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2"
|
|
'tmpfiles.d'
|
|
'rc.d')
|
|
sha512sums=('e421e723cd7d46b87c07d5a3be5aaa592453b6c7d2fa02440cc8ac5a1f931126f5011b0fed9c8d0fcfb142dd7290db67ca2638f75fa8b41d38f2a825816621e1'
|
|
'3608f8b0418aa5527917c35308aeca80357c3cf1834cceeade2eaab7fa736117c0b3143cf225478441ffc533b45ff1e8c5579a2e1aa432a4db5ca4cef2dd04e1'
|
|
'519cd5b0e64511ff4e5e9a34f343a80d2ebf87e3207c0e9fbf4f591f3f731b7adaa659d769b1c658ecdba66b71e0f78c09b9b6e1caedae5c208082f8d85ff743')
|
|
|
|
backup=('etc/mpd.conf')
|
|
install=install
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--enable-lastfm \
|
|
--enable-jack \
|
|
--enable-pulse \
|
|
--disable-sidplay \
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system \
|
|
--disable-libwrap
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
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 doc/mpdconf.example
|
|
install -Dm755 ../rc.d "${pkgdir}"/etc/rc.d/mpd
|
|
install -d -g 45 -o 45 "${pkgdir}"/var/lib/mpd/playlists
|
|
install -Dm644 doc/mpdconf.example "${pkgdir}"/etc/mpd.conf
|
|
install -Dm644 ../tmpfiles.d "${pkgdir}"/usr/lib/tmpfiles.d/mpd.conf
|
|
}
|