diff options
author | root <root@rshg054.dnsready.net> | 2012-04-03 00:01:35 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-04-03 00:01:35 +0000 |
commit | c7cb603f86b4d4fb6567e3faa15b916a306f7004 (patch) | |
tree | bfdbca0002d6aeecc13f29a1c14d3991e6e93d4c /testing/totem | |
parent | 321f44e3a5da426309c4b6664af035c97f907565 (diff) |
Tue Apr 3 00:01:35 UTC 2012
Diffstat (limited to 'testing/totem')
-rw-r--r-- | testing/totem/PKGBUILD | 76 | ||||
-rw-r--r-- | testing/totem/browser-plugins.ini | 2 | ||||
-rw-r--r-- | testing/totem/totem.install | 13 |
3 files changed, 91 insertions, 0 deletions
diff --git a/testing/totem/PKGBUILD b/testing/totem/PKGBUILD new file mode 100644 index 000000000..387bed2c5 --- /dev/null +++ b/testing/totem/PKGBUILD @@ -0,0 +1,76 @@ +# $Id: PKGBUILD 155274 2012-04-01 11:37:23Z 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.4.0 +pkgrel=1 +pkgdesc="A GNOME3 integrated movie player based on Gstreamer." +url="http://www.gnome.org" +arch=('i686' 'x86_64') +license=('GPL2' 'custom') +depends=('gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' 'totem-plparser' 'libxxf86vm' + 'libxtst' 'desktop-file-utils' 'iso-codes' 'python2' 'libpeas' 'hicolor-icon-theme' + 'gnome-icon-theme-symbolic' 'gsettings-desktop-schemas' 'dconf' 'clutter-gst' + 'clutter-gtk' 'mx' 'python2-gobject' 'pylint') +makedepends=('intltool' 'gtk-doc' 'nautilus' 'libgdata' 'lirc-utils' + 'libepc' 'bluez' 'vala' 'grilo') +options=('!libtool' '!emptydirs') +source=(http://ftp.gnome.org/pub/gnome/sources/$pkgbase/${pkgver%.*}/$pkgbase-$pkgver.tar.xz + browser-plugins.ini) +sha256sums=('683209ea6eeffa39c277bab02567e4ae8250f00719ef8dd3f30e5f4bdf1f0f9c' + '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=('gstreamer0.10-ugly-plugins: Extra media codecs' + 'gstreamer0.10-bad-plugins: Extra media codecs' + 'gstreamer0.10-ffmpeg: Extra media codecs' + 'lirc-utils: Infrared Remote Control plugin' + 'libepc: Publish Playlist plugin' + 'libgdata: YouTube Browser plugin' + 'bluez: Bemused 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,plugins/iplayer/iplayer2.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/testing/totem/browser-plugins.ini b/testing/totem/browser-plugins.ini new file mode 100644 index 000000000..cf3014997 --- /dev/null +++ b/testing/totem/browser-plugins.ini @@ -0,0 +1,2 @@ +[Plugins] +application/x-shockwave-flash.disabled=true diff --git a/testing/totem/totem.install b/testing/totem/totem.install new file mode 100644 index 000000000..7f0fc704b --- /dev/null +++ b/testing/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 +} |