New package: libgpod-0.8.3.

This commit is contained in:
Juan RP 2017-11-22 21:27:49 +01:00
parent 52e1c4833a
commit 2d290acb45
5 changed files with 81 additions and 0 deletions

View file

@ -2901,3 +2901,4 @@ libmysofa.so.0 libmysofa-0.6_1
libzinnia.so.0 libzinnia-0.06_1
libmega.so.30207 libmega-3.2.7_1
libopenglrecorder.so.0 libopenglrecorder-0.1.0_1
libgpod.so.4 libgpod-0.8.3_1

1
srcpkgs/libgpod-devel Symbolic link
View file

@ -0,0 +1 @@
libgpod

View file

@ -0,0 +1,43 @@
From 8dc5015ae036b219c4c9579a156886aa3a722aa5 Mon Sep 17 00:00:00 2001
From: phantomjinx <p.g.richardson@phantomjinx.co.uk>
Date: Sat, 9 Aug 2014 19:57:10 +0100
Subject: [PATCH] #323 Segmentation fault when opening ipod
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* Patch submitted in bug report from François Melchior / James Burton
---
src/itdb_itunesdb.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index 4cc771a..1e85476 100644
--- src/itdb_itunesdb.c
+++ src/itdb_itunesdb.c
@@ -1156,6 +1156,7 @@ static gboolean playcounts_plist_read (FImport *fimp, GValue *plist_data)
GHashTable *pc_dict, *track_dict;
GValue *to_parse;
GArray *array;
+ GValue value;
gint i;
guint32 mac_time;
guint64 *dbid;
@@ -1175,11 +1176,12 @@ static gboolean playcounts_plist_read (FImport *fimp, GValue *plist_data)
array = (GArray*)g_value_get_boxed (to_parse);
for (i = 0; i < array->len; i++) {
- if (!G_VALUE_HOLDS (g_array_index (array, GValue *, i), G_TYPE_HASH_TABLE)) {
+ value = g_array_index (array, GValue, i);
+ if (!G_VALUE_HOLDS (&value, G_TYPE_HASH_TABLE)) {
continue;
}
- track_dict = g_value_get_boxed (g_array_index (array, GValue *, i));
+ track_dict = g_value_get_boxed (&value);
if (track_dict == NULL)
continue;
--
2.12.2

View file

@ -0,0 +1,10 @@
--- libgpod-1.0.pc.in.pkgconfig_overlinking 2011-04-15 03:37:34.000000000 -0500
+++ libgpod-1.0.pc.in 2012-08-10 13:53:00.294631805 -0500
@@ -6,6 +6,6 @@ includedir=@includedir@
Name: libgpod
Description: A library to manipulate songs and playlists stored on an ipod
Version: @VERSION@
-Requires: glib-2.0 >= 2.8.0 gobject-2.0 @GDKPIXBUF_REQ@ @LIBIMOBILEDEVICE_REQ@
+Requires.private: glib-2.0 >= 2.8.0 gobject-2.0 @GDKPIXBUF_REQ@ @LIBIMOBILEDEVICE_REQ@
Libs: -L${libdir} -lgpod
Cflags: -I${includedir}/gpod-1.0

26
srcpkgs/libgpod/template Normal file
View file

@ -0,0 +1,26 @@
# Template file for 'libgpod'
pkgname=libgpod
version=0.8.3
revision=1
build_style=gnu-configure
configure_args="--with-udev-dir=/usr/lib/udev --enable-udev"
hostmakedepends="intltool pkg-config"
makedepends="gdk-pixbuf-devel libimobiledevice-devel libplist-devel sg3_utils-devel sqlite-devel"
short_desc="A shared library to access the contents of an iPod"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
homepage="http://www.gtkpod.org/libgpod/"
distfiles="${SOURCEFORGE_SITE}/gtkpod/$pkgname-$version.tar.bz2"
checksum=638a7959d04e95f1e62abad02bd33702e4e8dfef98485ac7d9d50395c37e955d
libgpod-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/share/gtk-doc
}
}