diff options
author | Michał Masłowski <mtjm@mtjm.eu> | 2012-03-25 10:16:01 +0200 |
---|---|---|
committer | Michał Masłowski <mtjm@mtjm.eu> | 2012-03-25 10:16:01 +0200 |
commit | 77425e418fa3a0ad0ddf41a4d3adcfe08ba9ac88 (patch) | |
tree | 95d18e80c36222043f998fe63f8f76ae21ac1dd9 /extra/mpd/PKGBUILD | |
parent | 493ce1a24e001f088219cdf7b8753b00155e4051 (diff) | |
parent | 891f44722456b693d99b397f7e332a9ed68a47a2 (diff) |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts:
extra/mpd/PKGBUILD
extra/msmtp/PKGBUILD
gnome-unstable/clutter-gtk/PKGBUILD
gnome-unstable/telepathy-gabble/PKGBUILD
gnome-unstable/telepathy-glib/PKGBUILD
testing/dhcpcd/PKGBUILD
Diffstat (limited to 'extra/mpd/PKGBUILD')
-rw-r--r-- | extra/mpd/PKGBUILD | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/extra/mpd/PKGBUILD b/extra/mpd/PKGBUILD index f7cd9d8df..8c6d5f826 100644 --- a/extra/mpd/PKGBUILD +++ b/extra/mpd/PKGBUILD @@ -1,61 +1,61 @@ -# $Id: PKGBUILD 149829 2012-02-11 09:25:31Z angvp $ -# Maintainer: Angel Velasquez <angvp@archlinux.org> +# $Id: PKGBUILD 154124 2012-03-23 16:56:11Z bisson $ +# Maintainer: Gaetan Bisson <bisson@archlinux.org> +# Contributor: Angel Velasquez <angvp@archlinux.org> # Contributor: Andrea Scarpino <andrea@archlinux.org> # Contributor: Damir Perisa <damir.perisa@bluewin.ch> # Contributor: Ben <ben@benmazer.net> pkgname=mpd pkgver=0.16.7 -pkgrel=1 -pkgdesc="Music daemon that plays MP3, FLAC, and Ogg Vorbis files" -arch=('i686' 'x86_64' 'mips64el') +pkgrel=3 +pkgdesc='Flexible, powerful, server-side application for playing music' +url='http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki' license=('GPL') -url="http://mpd.wikia.com/wiki/Server" +arch=('i686' 'x86_64' 'mips64el') depends=('libao' 'ffmpeg' 'libmodplug' 'audiofile' 'libshout' 'libmad' 'curl' 'faad2' 'sqlite3' 'jack' 'libmms' 'wavpack' 'libmpcdec' 'avahi' 'libid3tag' 'libpulse') -makedepends=('pkgconfig' 'doxygen') -install=${pkgname}.install -changelog=ChangeLog -source=("http://downloads.sourceforge.net/musicpd/$pkgname-$pkgver.tar.bz2" -'mpd') -md5sums=('3d0e7c36646e80386b32966bd4268e8d' - 'e5669c2bff4031928531e52475addeb1') +makedepends=('doxygen') +source=("http://downloads.sourceforge.net/musicpd/${pkgname}-${pkgver}.tar.bz2" + 'rc.d') +sha1sums=('878f3ce82d4f00f6cbad63a625b2c0274c4a704a' + '3777bdb4fff4b7911be3b1242aabae9d2912ef18') + +install=install build() { - cd "$srcdir/$pkgname-$pkgver" - - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --enable-lastfm \ - --enable-jack \ - --enable-pulse \ - --enable-documentation \ - --disable-libwrap \ - --disable-cue \ - --disable-sidplay \ - --with-systemdsystemunitdir=/lib/systemd/system - - make + cd "${srcdir}/${pkgname}-${pkgver}" + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --enable-lastfm \ + --enable-jack \ + --enable-pulse \ + --enable-documentation \ + --disable-libwrap \ + --disable-cue \ + --disable-sidplay \ + --disable-documentation \ + --with-systemdsystemunitdir=/lib/systemd/system + + make } package() { - cd "$srcdir/$pkgname-$pkgver" - - make DESTDIR="$pkgdir" install + cd "${srcdir}/${pkgname}-${pkgver}" - # set our 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 + make DESTDIR="${pkgdir}" install - install -Dm644 "doc/mpdconf.example" "$pkgdir/usr/share/mpd/mpd.conf.example" + 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 "$srcdir/mpd" "$pkgdir/etc/rc.d/mpd" - install -d "$pkgdir"/var/{lib/mpd/playlists,log/mpd} + 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}"/usr/share/mpd/mpd.conf.example } |