summaryrefslogtreecommitdiff
path: root/community/gtkpod
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-01-28 00:05:59 -0800
committerroot <root@rshg054.dnsready.net>2013-01-28 00:05:59 -0800
commit1b9f6dc846379470b620b5dbb9d4d7acd1de148c (patch)
tree2305b950a3c94970b05c1a38af473f5cca95af02 /community/gtkpod
parentb9b96ada56ad38df20b1e528a095a1e86ab67a2b (diff)
Mon Jan 28 00:05:59 PST 2013
Diffstat (limited to 'community/gtkpod')
-rw-r--r--community/gtkpod/PKGBUILD37
-rw-r--r--community/gtkpod/gtkpod-2.1.3-gdl-3.6.patch44
-rw-r--r--community/gtkpod/gtkpod.install12
3 files changed, 93 insertions, 0 deletions
diff --git a/community/gtkpod/PKGBUILD b/community/gtkpod/PKGBUILD
new file mode 100644
index 000000000..5cb27cb9b
--- /dev/null
+++ b/community/gtkpod/PKGBUILD
@@ -0,0 +1,37 @@
+# $Id: PKGBUILD 83150 2013-01-27 16:17:12Z pierre $
+# Contributor: Kevin Piche <kevin@archlinux.org>
+# Contributor: Aaron Griffin <aaron@archlinux.org>
+
+pkgname=gtkpod
+pkgver=2.1.3
+pkgrel=1
+pkgdesc="A platform independent GUI for Apple's iPod using GTK3"
+arch=('i686' 'x86_64')
+url="http://gtkpod.sourceforge.net"
+license=('GPL')
+depends=('libanjuta' 'curl' 'flac' 'libid3tag' 'libgpod' 'awk' 'hicolor-icon-theme' 'dconf' 'libwebkit3')
+makedepends=('flex' 'intltool' 'libvorbis' 'faad2')
+optdepends=('libmp4v2: MP4/h264 support'
+ 'vorbis-tools: OGG support'
+ 'libvorbis: OGG support'
+ 'id3v2: mp3 conversion support'
+ 'faad2: m4a conversion support')
+install=gtkpod.install
+options=('!libtool')
+source=("http://downloads.sourceforge.net/gtkpod/${pkgname}-${pkgver}.tar.gz"
+ gtkpod-2.1.3-gdl-3.6.patch)
+md5sums=('57f04578de6e3262a436ec574422b144'
+ '8d725015081bd89bc8f9a4521d170aef')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -p1 -i "${srcdir}/gtkpod-2.1.3-gdl-3.6.patch"
+ sed -i 's#python#python2#' scripts/sync-palm-jppy.py
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+}
diff --git a/community/gtkpod/gtkpod-2.1.3-gdl-3.6.patch b/community/gtkpod/gtkpod-2.1.3-gdl-3.6.patch
new file mode 100644
index 000000000..b794fa11b
--- /dev/null
+++ b/community/gtkpod/gtkpod-2.1.3-gdl-3.6.patch
@@ -0,0 +1,44 @@
+Index: gtkpod-2.1.2/src/anjuta-action-callbacks.c
+===================================================================
+--- gtkpod-2.1.2.orig/src/anjuta-action-callbacks.c
++++ gtkpod-2.1.2/src/anjuta-action-callbacks.c
+@@ -65,7 +65,7 @@ void
+ on_layout_lock_toggle (GtkAction *action, AnjutaApp *app)
+ {
+ if (app->layout_manager)
+- g_object_set (app->layout_manager->master, "locked",
++ g_object_set (gdl_dock_layout_get_master (app->layout_manager), "locked",
+ gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action)),
+ NULL);
+ }
+Index: gtkpod-2.1.2/src/anjuta-app.c
+===================================================================
+--- gtkpod-2.1.2.orig/src/anjuta-app.c
++++ gtkpod-2.1.2/src/anjuta-app.c
+@@ -252,7 +252,7 @@ static void on_gdl_style_changed(GSettin
+ else if (g_strcmp0(pr_style, "Tabs") == 0)
+ style = GDL_SWITCHER_STYLE_TABS;
+
+- g_object_set(G_OBJECT(app->layout_manager->master), "switcher-style", style, NULL);
++ g_object_set(G_OBJECT(gdl_dock_layout_get_master (app->layout_manager)), "switcher-style", style, NULL);
+ g_free(pr_style);
+ }
+
+@@ -478,14 +478,14 @@ static void anjuta_app_instance_init(Anj
+ gtk_widget_show(app->dock);
+ gtk_box_pack_end(GTK_BOX (hbox), app->dock, TRUE, TRUE, 0);
+
+- dockbar = gdl_dock_bar_new(GDL_DOCK(app->dock));
++ dockbar = gdl_dock_bar_new(G_OBJECT(app->dock));
+ gtk_widget_show(dockbar);
+ gtk_box_pack_start(GTK_BOX (hbox), dockbar, FALSE, FALSE, 0);
+
+- app->layout_manager = gdl_dock_layout_new(GDL_DOCK (app->dock));
++ app->layout_manager = gdl_dock_layout_new(G_OBJECT (app->dock));
+ g_signal_connect (app->layout_manager, "notify::dirty",
+ G_CALLBACK (on_layout_dirty_notify), app);
+- g_signal_connect (app->layout_manager->master, "notify::locked",
++ g_signal_connect (gdl_dock_layout_get_master (app->layout_manager), "notify::locked",
+ G_CALLBACK (on_layout_locked_notify), app);
+
+ /* UI engine */
diff --git a/community/gtkpod/gtkpod.install b/community/gtkpod/gtkpod.install
new file mode 100644
index 000000000..c5d357a38
--- /dev/null
+++ b/community/gtkpod/gtkpod.install
@@ -0,0 +1,12 @@
+post_install() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ glib-compile-schemas usr/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}