#
-# Copyright (C) 2006-2014 OpenWrt.org
+# Copyright (C) 2006-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:= \
- http://github.com/downloads/mpruett/audiofile/ \
- http://www.68k.org/~michael/audiofile/
+PKG_SOURCE_URL:=http://audiofile.68k.org/
PKG_MD5SUM:=2731d79bec0acef3d30d2fc86b0b72fd
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Audio File library
- URL:=http://www.68k.org/~michael/audiofile/
+ URL:=http://audiofile.68k.org/
DEPENDS:=+libflac +libstdcpp
endef
--- /dev/null
+From 3cd7fb6af73ca7fdef2557ad31b5c4180534d775 Mon Sep 17 00:00:00 2001
+From: "W. Michael Petullo" <mike@flyn.org>
+Date: Sat, 9 Jul 2016 09:50:00 -0400
+Subject: [PATCH] dmap: Add album disc number mapping
+
+Signed-off-by: W. Michael Petullo <mike@flyn.org>
+---
+ src/dmap/grl-daap-db.c | 7 +++++++
+ src/dmap/grl-daap.c | 1 +
+ 2 files changed, 8 insertions(+)
+
+diff --git a/src/dmap/grl-daap-db.c b/src/dmap/grl-daap-db.c
+index 4850073..5bcd804 100644
+--- a/src/dmap/grl-daap-db.c
++++ b/src/dmap/grl-daap-db.c
+@@ -161,6 +161,7 @@ grl_daap_db_add (DMAPDb *_db, DMAPRecord *_record)
+
+ gint duration = 0;
+ gint32 bitrate = 0,
++ disc = 0,
+ track = 0;
+ gchar *id_s = NULL,
+ *title = NULL,
+@@ -186,6 +187,8 @@ grl_daap_db_add (DMAPDb *_db, DMAPRecord *_record)
+ &title,
+ "track",
+ &track,
++ "disc",
++ &disc,
+ "location",
+ &url,
+ "has-video",
+@@ -217,6 +220,10 @@ grl_daap_db_add (DMAPDb *_db, DMAPRecord *_record)
+ grl_media_set_bitrate (media, bitrate);
+ grl_media_set_track_number (media, track);
+
++ if (disc != 0) {
++ grl_media_set_album_disc_number (media, disc);
++ }
++
+ if (album) {
+ grl_media_set_album (media, album);
+ }
+diff --git a/src/dmap/grl-daap.c b/src/dmap/grl-daap.c
+index 59aa981..796234d 100644
+--- a/src/dmap/grl-daap.c
++++ b/src/dmap/grl-daap.c
+@@ -365,6 +365,7 @@ grl_daap_source_supported_keys (GrlSource *source)
+
+ if (!keys) {
+ keys = grl_metadata_key_list_new (GRL_METADATA_KEY_ALBUM,
++ GRL_METADATA_KEY_ALBUM_DISC_NUMBER,
+ GRL_METADATA_KEY_ARTIST,
+ GRL_METADATA_KEY_BITRATE,
+ GRL_METADATA_KEY_DURATION,
+--
+2.7.4
+
include $(TOPDIR)/rules.mk
PKG_NAME:=grilo
-PKG_VERSION:=0.3.0
+PKG_VERSION:=0.3.1
PKG_RELEASE:=1
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNOME/grilo/0.3/
-PKG_MD5SUM:=f8a51aacc604dcc308e71f8bca4c57ae
+PKG_MD5SUM:=3b6733633e42143ff90fac1fef34cf42
PKG_BUILD_DEPENDS:=glib2 libsoup libxml2