summaryrefslogtreecommitdiff
path: root/extra/totem/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/totem/PKGBUILD')
-rw-r--r--extra/totem/PKGBUILD80
1 files changed, 80 insertions, 0 deletions
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 <jgc@archlinux.org>
+
+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"
+}
+