[arch-commits] Commit in mopidy/trunk (PKGBUILD mopidy.conf)

Sven-Hendrik Haase svenstaro at archlinux.org
Wed Apr 8 19:54:05 UTC 2015


    Date: Wednesday, April 8, 2015 @ 21:54:05
  Author: svenstaro
Revision: 130957

upgpkg: mopidy 1.0.0-4

Use own config file

Added:
  mopidy/trunk/mopidy.conf
Modified:
  mopidy/trunk/PKGBUILD

-------------+
 PKGBUILD    |    7 ++++---
 mopidy.conf |    8 ++++++++
 2 files changed, 12 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-04-08 19:08:37 UTC (rev 130956)
+++ PKGBUILD	2015-04-08 19:54:05 UTC (rev 130957)
@@ -3,7 +3,7 @@
 
 pkgname=mopidy
 pkgver=1.0.0
-pkgrel=3
+pkgrel=4
 pkgdesc="Mopidy is a music server which can play music both from multiple sources, like your local hard drive, radio streams, and from Spotify and SoundCloud."
 arch=('any')
 url="http://www.mopidy.com"
@@ -24,8 +24,10 @@
 backup=('etc/mopidy/mopidy.conf')
 install=$pkgname.install
 source=("https://github.com/mopidy/mopidy/archive/v${pkgver}.tar.gz"
+        'mopidy.conf'
         'mopidy.install')
 md5sums=('f2c01fb8fcd1c0bd509344a9f2f72fc1'
+         'f198485317cd1f481b9b9a369e122833'
          'bd513aa0e4e83c117340a55f53215cf2')
 
 build() {
@@ -45,8 +47,7 @@
   install -dm755 "${pkgdir}/usr/share/man/man1/"
   gzip -c docs/_build/man/mopidy.1 > "${pkgdir}/usr/share/man/man1/mopidy.1.gz" 
 
-  install -Dm644 "mopidy/config/default.conf" "${pkgdir}/etc/mopidy/mopidy.conf"
-  sed -i "s|debug_file.*|debug_file = /var/log/mopidy/mopidy.log|" "${pkgdir}/etc/mopidy/mopidy.conf"
+  install -Dm644 "${srcdir}/mopidy.conf" "${pkgdir}/etc/mopidy/mopidy.conf"
 
   install -Dm644 "extra/systemd/mopidy.service" "${pkgdir}/usr/lib/systemd/system/mopidy.service"
   install -Dm644 "extra/desktop/mopidy.desktop" "${pkgdir}/usr/share/applications/mopidy.desktop"

Added: mopidy.conf
===================================================================
--- mopidy.conf	                        (rev 0)
+++ mopidy.conf	2015-04-08 19:54:05 UTC (rev 130957)
@@ -0,0 +1,8 @@
+[logging]
+debug_file = /var/log/mopidy/mopidy-debug.log
+
+[local]
+enabled = true
+data_dir = /var/lib/mopidy/local
+media_dir = /var/lib/mopidy/media
+playlists_dir = /var/lib/mopidy/playlists



More information about the arch-commits mailing list