summaryrefslogtreecommitdiff
path: root/gnome-unstable/totem
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-04 01:23:34 -0700
committerroot <root@rshg054.dnsready.net>2012-10-04 01:23:34 -0700
commitc3ff6b4da8966c22dcbf0f5d8a957b875242789f (patch)
tree73064dc985b6d59695639dfb6d4ae4ba99395cc5 /gnome-unstable/totem
parent1350233b6dc1924ba29a42462447995f26dae0dc (diff)
Thu Oct 4 01:23:34 PDT 2012
Diffstat (limited to 'gnome-unstable/totem')
-rw-r--r--gnome-unstable/totem/PKGBUILD70
-rw-r--r--gnome-unstable/totem/browser-plugins.ini2
-rw-r--r--gnome-unstable/totem/totem.install13
3 files changed, 85 insertions, 0 deletions
diff --git a/gnome-unstable/totem/PKGBUILD b/gnome-unstable/totem/PKGBUILD
new file mode 100644
index 000000000..e6649d299
--- /dev/null
+++ b/gnome-unstable/totem/PKGBUILD
@@ -0,0 +1,70 @@
+# $Id: PKGBUILD 167895 2012-10-03 15:58:28Z heftig $
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
+# Contributor: Jan de Groot <jgc@archlinux.org>
+
+pkgbase=totem
+pkgname=('totem' 'totem-plugin')
+pkgver=3.6.0
+pkgrel=1
+pkgdesc="GNOME3 movie player based on GStreamer"
+url="http://www.gnome.org"
+arch=(i686 x86_64)
+license=(GPL2 custom)
+depends=(gst-plugins-base gst-plugins-good totem-plparser desktop-file-utils iso-codes libpeas
+ hicolor-icon-theme gnome-icon-theme-symbolic gsettings-desktop-schemas dconf clutter-gst
+ clutter-gtk mx python2-gobject gst-plugins-bad)
+makedepends=(intltool gnome-doc-utils nautilus lirc-utils vala grilo pylint)
+options=('!libtool' '!emptydirs')
+source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver%.*}/$pkgbase-$pkgver.tar.xz
+ browser-plugins.ini)
+sha256sums=('e767da34f5212bd9b2d3ea9bc7e3a87b284581ee012214274225dd8decb8fe3e'
+ 'a50a3bbf35f0535f7e8e20af1893446a2e5711015484f9ae6d1ff91af3b23c4e')
+
+build() {
+ cd "$pkgbase-$pkgver"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/lib/totem \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-python \
+ --enable-nautilus
+ make
+}
+
+package_totem() {
+ groups=(gnome-extra)
+ install=totem.install
+ optdepends=('gst-plugins-ugly: Extra media codecs'
+ 'gst-ffmpeg: Extra media codecs'
+ 'lirc-utils: Infrared Remote Control plugin'
+ 'grilo-plugins: Browse sidebar (remote media)'
+ 'pyxdg: opensubtitles plugin')
+
+ cd "$pkgbase-$pkgver"
+ make DESTDIR="${pkgdir}" install
+
+ rm -r "$pkgdir/usr/lib/mozilla"
+ rm "$pkgdir/usr/lib/totem/totem-plugin-viewer"
+
+ sed -i "s|#!/usr/bin/python$|#!/usr/bin/python2|" \
+ $pkgdir/usr/lib/totem/totem/totem-bugreport.py
+
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/totem/COPYING"
+}
+
+package_totem-plugin() {
+ pkgdesc="Totem plugin for web browsers"
+ depends=("totem=$pkgver")
+ backup=(etc/totem/browser-plugins.ini)
+
+ cd "$pkgbase-$pkgver"
+ make -C browser-plugin \
+ plugindir=/usr/lib/mozilla/plugins \
+ xptdir=/usr/lib/mozilla/plugins \
+ DESTDIR="$pkgdir" install
+
+ install -Dm644 ../browser-plugins.ini "$pkgdir/etc/totem/browser-plugins.ini"
+
+ install -Dm644 COPYING "$pkgdir/usr/share/licenses/totem-plugin/COPYING"
+}
diff --git a/gnome-unstable/totem/browser-plugins.ini b/gnome-unstable/totem/browser-plugins.ini
new file mode 100644
index 000000000..cf3014997
--- /dev/null
+++ b/gnome-unstable/totem/browser-plugins.ini
@@ -0,0 +1,2 @@
+[Plugins]
+application/x-shockwave-flash.disabled=true
diff --git a/gnome-unstable/totem/totem.install b/gnome-unstable/totem/totem.install
new file mode 100644
index 000000000..7f0fc704b
--- /dev/null
+++ b/gnome-unstable/totem/totem.install
@@ -0,0 +1,13 @@
+post_install() {
+ /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
+ update-desktop-database -q
+ gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
+}
+
+post_upgrade() {
+ post_install
+}
+
+post_remove() {
+ post_install
+}