# $Id: PKGBUILD 127845 2011-06-18 19:41:13Z ibiru $ # Maintainer: Jan de Groot pkgbase=totem pkgname=('totem' 'totem-plugin') pkgver=3.0.1 pkgrel=3 url="http://www.gnome.org" arch=('i686' 'x86_64') license=('GPL2' 'custom') makedepends=('intltool' 'gnome-doc-utils' 'gstreamer0.10-base-plugins' 'gstreamer0.10-good-plugins' 'totem-plparser' 'libpeas' 'pygobject' 'pygobject-devel' 'nautilus' 'libxxf86vm' 'libxtst' 'desktop-file-utils' 'iso-codes' 'libgdata' 'xulrunner' 'lirc-utils' 'libepc' 'bluez' 'vala') options=('!libtool' '!emptydirs') source=(http://ftp.gnome.org/pub/gnome/sources/${pkgbase}/${pkgver%.*}/${pkgbase}-${pkgver}.tar.bz2 fix_crash.patch) sha256sums=('013b6cfedac6ff264aa27de7346597d0b8da7f4ed1f91b2c966a13d3fdff679a' '65125a0b8a1fd7f8840b2b7528de3bc553689e224a9aa3fd2c459918ab6f1f1c') build() { cd "${srcdir}/${pkgbase}-${pkgver}" patch -Np1 -i "${srcdir}/fix_crash.patch" ./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 GNOME3 integrated movie player based on Gstreamer." 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') 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') cd "${srcdir}/${pkgbase}-${pkgver}" make DESTDIR="${pkgdir}" install rm -rf "${pkgdir}/usr/lib/mozilla" rm -f "${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 mozilla/firefox plugin" depends=("totem=${pkgver}") cd "${srcdir}/${pkgbase}-${pkgver}" make -C browser-plugin \ plugindir=/usr/lib/mozilla/plugins \ xptdir=/usr/lib/mozilla/plugins \ DESTDIR="${pkgdir}" install rm -rf "${pkgdir}/usr/share" install -Dm644 COPYING "${pkgdir}/usr/share/licenses/totem-plugin/COPYING" }