From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- extra/totem/PKGBUILD | 80 +++++++++++++++++++++++++++++++++++++++++++++++ extra/totem/totem.install | 24 ++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 extra/totem/PKGBUILD create mode 100644 extra/totem/totem.install (limited to 'extra/totem') diff --git a/extra/totem/PKGBUILD b/extra/totem/PKGBUILD new file mode 100644 index 000000000..4241b3209 --- /dev/null +++ b/extra/totem/PKGBUILD @@ -0,0 +1,80 @@ +# $Id: PKGBUILD 96293 2010-10-19 20:31:32Z ibiru $ +# Maintainer: Jan de Groot + +pkgbase=totem +pkgname=('totem' 'totem-plugin') +pkgver=2.32.0 +pkgrel=3 +url="http://www.hadess.net/totem.php3" +arch=('i686' 'x86_64') +license=('GPL2' 'custom') +makedepends=('gstreamer0.10-base-plugins>=0.10.30' 'gstreamer0.10-good-plugins>=0.10.22' 'totem-plparser>=2.32.0' 'libxxf86vm' 'libxtst' 'desktop-file-utils' 'iso-codes>=3.10.1' 'libepc>=0.3.10' 'python2' 'libgdata>=0.6.4' 'nautilus>=2.32.0' 'xulrunner>=1.9.2' 'pkgconfig' 'bluez>=4.64' 'lirc-utils' 'gnome-doc-utils>=0.20.1' 'gnome-control-center>=2.32.0' 'intltool' 'pygtk>=2.22.0') + +options=('!libtool' '!emptydirs') +source=(http://ftp.gnome.org/pub/gnome/sources/totem/2.32/${pkgbase}-${pkgver}.tar.bz2) +sha256sums=('982d6aaeca3e4844694fc0a2540d792bea753e24b55cf33203188b32b5914f47') + +build() { + cd "${srcdir}/${pkgbase}-${pkgver}" + ./configure --prefix=/usr --sysconfdir=/etc \ + --libexecdir=/usr/lib/totem \ + --localstatedir=/var --disable-static \ + --enable-python --enable-nautilus \ + --with-dbus --disable-scrollkeeper + make +} + +package_totem() { + pkgdesc="A GNOME2 integrated movie player based on Gstreamer." + depends=('gstreamer0.10-base-plugins>=0.10.30' 'gstreamer0.10-good-plugins>=0.10.22' 'totem-plparser>=2.32.0' 'libxxf86vm' 'libxtst' 'desktop-file-utils' 'iso-codes>=3.10.1' 'python2' 'libunique>=1.1.6') + 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' + 'httplib2: BBC iPlayer plugin' + 'python-feedparser: BBC iPlayer plugin' + 'beautiful-soup: BBC iPlayer plugin' + 'coherence: Coherence DLNA/UPnP Client plugin' + 'dbus-python: D-Bus Service plugin' + 'gromit: Gromit Annotations plugin' + 'lirc-utils: Infrared Remote Control plugin' + 'libepc: Publish Playlist plugin' + 'pyxdg: Subtitle Downloader plugin' + 'libgdata: YouTube Browser plugin' + 'gnome-python: Subtitle plugin') + conflicts=('totem-xine') + replaces=('totem-xine') + + cd "${srcdir}/${pkgbase}-${pkgver}" + make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install + + rm -f ${pkgdir}/usr/share/totem/vanity.* + rm -f "${pkgdir}/usr/share/pixmaps/vanity.png" + + rm -rf "${pkgdir}/usr/lib/mozilla" + rm -f "${pkgdir}/usr/lib/totem/totem-plugin-viewer" + + install -m755 -d "${pkgdir}/usr/share/gconf/schemas" + gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain totem ${pkgdir}/etc/gconf/schemas/*.schemas + rm -f ${pkgdir}/etc/gconf/schemas/*.schemas + + sed -i "s|#!/usr/bin/python$|#!/usr/bin/python2|" \ + $pkgdir/usr/lib/totem/{totem/totem-bugreport.py,plugins/iplayer/iplayer2.py} + + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/" +} + +package_totem-plugin() { + pkgdesc="Totem mozilla/firefox plugin" + depends="totem=${pkgver}" + + cd "${srcdir}/${pkgbase}-${pkgver}/browser-plugin" + make plugindir=/usr/lib/mozilla/plugins \ + xptdir=/usr/lib/mozilla/plugins \ + DESTDIR="${pkgdir}" install + + rm -rf "${pkgdir}/usr/share" +} + diff --git a/extra/totem/totem.install b/extra/totem/totem.install new file mode 100644 index 000000000..98dabd71a --- /dev/null +++ b/extra/totem/totem.install @@ -0,0 +1,24 @@ +pkgname=totem + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} -- cgit v1.2.3-54-g00ecf