rhythmbox: nuovo pacchetto WIP.
authorAndrea Zagli <azagli@libero.it>
Sun, 5 Apr 2015 09:32:45 +0000 (11:32 +0200)
committerAndrea Zagli <azagli@libero.it>
Sat, 21 Apr 2018 13:13:20 +0000 (15:13 +0200)
packages/mingw-w64-rhythmbox/001-win.patch [new file with mode: 0644]
packages/mingw-w64-rhythmbox/PKGBUILD [new file with mode: 0644]
packages/mingw-w64-rhythmbox/rhythmbox-i686.install [new file with mode: 0644]
packages/mingw-w64-rhythmbox/rhythmbox-x86_64.install [new file with mode: 0644]

diff --git a/packages/mingw-w64-rhythmbox/001-win.patch b/packages/mingw-w64-rhythmbox/001-win.patch
new file mode 100644 (file)
index 0000000..5ea1bce
--- /dev/null
@@ -0,0 +1,99 @@
+--- ./configure.ac.orig        2015-03-29 07:15:01.000000000 +0200
++++ ./configure.ac     2015-04-01 23:23:27.423246600 +0200
+@@ -84,7 +84,7 @@
+ PKG_PROG_PKG_CONFIG
+-PKG_CHECK_MODULES(RB_CLIENT, glib-2.0 >= $GLIB_REQS gio-2.0 >= $GLIB_REQS gio-unix-2.0 >= $GLIB_REQS)
++PKG_CHECK_MODULES(RB_CLIENT, glib-2.0 >= $GLIB_REQS gio-2.0 >= $GLIB_REQS)
+ dnl Always require libX11 for XInitThreads() on X11 systems
+ X11_PKG=""
+@@ -108,12 +108,10 @@
+                 gdk-pixbuf-2.0 >= $GDK_PIXBUF_REQS    \
+                 glib-2.0 >= $GLIB_REQS                \
+                 gio-2.0 >= $GLIB_REQS                 \
+-                gio-unix-2.0 >= $GLIB_REQS            \
+                 libsoup-2.4 >= $LIBSOUP_REQS          \
+                 libpeas-1.0 >= $LIBPEAS_REQS          \
+                 libpeas-gtk-1.0 >= $LIBPEAS_REQS      \
+                 libxml-2.0 >= $LIBXML2_REQS           \
+-                tdb >= 1.2.6                          \
+                 json-glib-1.0)
+ PKG_CHECK_MODULES(TOTEM_PLPARSER, totem-plparser >= $TOTEM_PLPARSER_REQS, have_totem_plparser=yes, have_totem_plparser=no)
+--- ./lib/Makefile.am.orig     2015-04-01 23:29:01.583735600 +0200
++++ ./lib/Makefile.am  2015-04-01 23:29:04.736313300 +0200
+@@ -1,6 +1,3 @@
+-
+-SUBDIRS = libmediaplayerid
+-
+ noinst_LTLIBRARIES = librb.la
+ rbincludedir = $(includedir)/rhythmbox/lib
+--- ./m4/intltool.m4.orig      2015-03-29 11:08:12.000000000 +0200
++++ ./m4/intltool.m4   2015-04-01 23:23:30.341413600 +0200
+@@ -155,31 +155,6 @@
+ # Substitute ALL_LINGUAS so we can use it in po/Makefile
+ AC_SUBST(ALL_LINGUAS)
+-# Set DATADIRNAME correctly if it is not set yet
+-# (copied from glib-gettext.m4)
+-if test -z "$DATADIRNAME"; then
+-  AC_LINK_IFELSE(
+-    [AC_LANG_PROGRAM([[]],
+-                     [[extern int _nl_msg_cat_cntr;
+-                       return _nl_msg_cat_cntr]])],
+-    [DATADIRNAME=share],
+-    [case $host in
+-    *-*-solaris*)
+-    dnl On Solaris, if bind_textdomain_codeset is in libc,
+-    dnl GNU format message catalog is always supported,
+-    dnl since both are added to the libc all together.
+-    dnl Hence, we'd like to go with DATADIRNAME=share
+-    dnl in this case.
+-    AC_CHECK_FUNC(bind_textdomain_codeset,
+-      [DATADIRNAME=share], [DATADIRNAME=lib])
+-    ;;
+-    *)
+-    [DATADIRNAME=lib]
+-    ;;
+-    esac])
+-fi
+-AC_SUBST(DATADIRNAME)
+-
+ IT_PO_SUBDIR([po])
+ ])
+--- ./po/Makefile.in.in.orig   2015-03-29 11:08:12.000000000 +0200
++++ ./po/Makefile.in.in        2015-04-01 23:23:29.987393200 +0200
+@@ -33,8 +33,7 @@
+ datadir = @datadir@
+ datarootdir = @datarootdir@
+ libdir = @libdir@
+-DATADIRNAME = @DATADIRNAME@
+-itlocaledir = $(prefix)/$(DATADIRNAME)/locale
++localedir = @localedir@
+ subdir = po
+ install_sh = @install_sh@
+ # Automake >= 1.8 provides @mkdir_p@.
+@@ -108,7 +107,7 @@
+ install-data-yes: all
+       linguas="$(USE_LINGUAS)"; \
+       for lang in $$linguas; do \
+-        dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
++        dir=$(DESTDIR)$(localedir)/$$lang/LC_MESSAGES; \
+         $(mkdir_p) $$dir; \
+         if test -r $$lang.gmo; then \
+           $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
+@@ -142,8 +141,8 @@
+ uninstall:
+       linguas="$(USE_LINGUAS)"; \
+       for lang in $$linguas; do \
+-        rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
+-        rm -f $(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
++        rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo; \
++        rm -f $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(GETTEXT_PACKAGE).mo.m; \
+       done
+ check: all $(GETTEXT_PACKAGE).pot
diff --git a/packages/mingw-w64-rhythmbox/PKGBUILD b/packages/mingw-w64-rhythmbox/PKGBUILD
new file mode 100644 (file)
index 0000000..c7487bf
--- /dev/null
@@ -0,0 +1,66 @@
+# Maintainer: Andrea Zagli <andrea.zagli.free@gmail.com>
+
+_realname=rhythmbox
+pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
+pkgver=3.2
+pkgrel=1
+arch=('any')
+pkgdesc="Music playback and management application (mingw-w64)"
+options=(strip staticlibs)
+depends=("${MINGW_PACKAGE_PREFIX}-gdk-pixbuf2"
+         "${MINGW_PACKAGE_PREFIX}-gtk3"
+         "${MINGW_PACKAGE_PREFIX}-gsettings-desktop-schemas"
+         "${MINGW_PACKAGE_PREFIX}-libxml2"
+         "${MINGW_PACKAGE_PREFIX}-libsoup"
+         "${MINGW_PACKAGE_PREFIX}-json-glib"
+         "${MINGW_PACKAGE_PREFIX}-libpeas"
+         "${MINGW_PACKAGE_PREFIX}-totem-pl-parser"
+         "${MINGW_PACKAGE_PREFIX}-webkitgtk3"
+         "${MINGW_PACKAGE_PREFIX}-python3"
+         "${MINGW_PACKAGE_PREFIX}-python3-gobject"
+         "${MINGW_PACKAGE_PREFIX}-gstreamer"
+         "${MINGW_PACKAGE_PREFIX}-gst-plugins-base")
+makedepends=("${MINGW_PACKAGE_PREFIX}-pkg-config"
+             "${MINGW_PACKAGE_PREFIX}-vala"
+             "${MINGW_PACKAGE_PREFIX}-gobject-introspection"
+             "gtk-doc")
+license=("GPL 2")
+url="http://www.gnome.org"
+install=${_realname}-${CARCH}.install
+source=(http://ftp.gnome.org/pub/gnome/sources/${_realname}/${pkgver}/${_realname}-$pkgver.tar.xz
+        001-win.patch)
+sha256sums=('9c8adf79e4b2bb76cee391c73ba7a1e699e7684e5f45507e7d6849957ac54f81'
+            '7857e7b29152ab083489ab283c2dbb7038a796088e983cd61d7e730eb7912486')
+
+prepare() {
+  cd "${srcdir}"/${_realname}-${pkgver}
+
+  patch -b -V simple -p1 -i ${srcdir}/001-win.patch
+
+  AUTOPOINT='intltoolize --automake --copy' \
+    autoreconf -f -i
+}
+
+build() {
+  mkdir -p build-${MINGW_CHOST}
+  cd build-${MINGW_CHOST}
+
+  mkdir -p doc/reference/html
+  cp -rf ../${_realname}-${pkgver}/doc/reference/html/* doc/reference/html
+
+  ../${_realname}-${pkgver}/configure \
+    --host=${MINGW_CHOST} \
+    --target=${MINGW_CHOST} \
+    --build=${MINGW_CHOST} \
+    --prefix=${MINGW_PREFIX} \
+    --libexecdir=${MINGW_PREFIX}/lib
+
+  make
+}
+
+package() {
+  cd "$srcdir/build-${MINGW_CHOST}"
+  make DESTDIR=$pkgdir install
+
+  install -Dm644 "${srcdir}/${_realname}-${pkgver}/COPYING" "${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/COPYING"
+}
diff --git a/packages/mingw-w64-rhythmbox/rhythmbox-i686.install b/packages/mingw-w64-rhythmbox/rhythmbox-i686.install
new file mode 100644 (file)
index 0000000..fcc957e
--- /dev/null
@@ -0,0 +1,11 @@
+post_install() {
+  mingw32/bin/glib-compile-schemas mingw32/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}
diff --git a/packages/mingw-w64-rhythmbox/rhythmbox-x86_64.install b/packages/mingw-w64-rhythmbox/rhythmbox-x86_64.install
new file mode 100644 (file)
index 0000000..6bcf507
--- /dev/null
@@ -0,0 +1,11 @@
+post_install() {
+  mingw64/bin/glib-compile-schemas mingw64/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+post_remove() {
+  post_install $1
+}